From 84f795e9fbd172924280593d575bf4587c9b40e5 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 22 Feb 2009 18:06:05 +0000 Subject: $db-> to phpbb::$db-> git-svn-id: file:///svn/phpbb/trunk@9336 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/develop/search_fill.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'phpBB/develop/search_fill.php') diff --git a/phpBB/develop/search_fill.php b/phpBB/develop/search_fill.php index ef683109a3..8819c428fd 100644 --- a/phpBB/develop/search_fill.php +++ b/phpBB/develop/search_fill.php @@ -56,13 +56,13 @@ print "\n\n"; // $sql = "SELECT COUNT(*) as total, MAX(post_id) as max_post_id FROM ". POSTS_TABLE; -if ( !($result = $db->sql_query($sql)) ) +if ( !($result = phpbb::$db->sql_query($sql)) ) { - $error = $db->sql_error(); + $error = phpbb::$db->sql_error(); die("Couldn't get maximum post ID :: " . $sql . " :: " . $error['message']); } -$max_post_id = $db->sql_fetchrow($result); +$max_post_id = phpbb::$db->sql_fetchrow($result); $totalposts = $max_post_id['total']; $max_post_id = $max_post_id['max_post_id']; @@ -82,14 +82,14 @@ for(;$postcounter <= $max_post_id; $postcounter += $batchsize) WHERE post_id BETWEEN $batchstart AND $batchend"; - if( !($result = $db->sql_query($sql)) ) + if( !($result = phpbb::$db->sql_query($sql)) ) { - $error = $db->sql_error(); + $error = phpbb::$db->sql_error(); die("Couldn't get post_text :: " . $sql . " :: " . $error['message']); } - $rowset = $db->sql_fetchrowset($result); - $db->sql_freeresult($result); + $rowset = phpbb::$db->sql_fetchrowset($result); + phpbb::$db->sql_freeresult($result); $post_rows = sizeof($rowset); @@ -97,7 +97,7 @@ for(;$postcounter <= $max_post_id; $postcounter += $batchsize) { // $sql = "LOCK TABLES ".POST_TEXT_TABLE." WRITE"; - // $result = $db->sql_query($sql); + // $result = phpbb::$db->sql_query($sql); print "\n

\nRestart from posting $batchstart
\n"; // For every post in the batch: @@ -111,7 +111,7 @@ for(;$postcounter <= $max_post_id; $postcounter += $batchsize) $search->index('post', $rowset[$post_nr]['post_id'], $rowset[$post_nr]['post_text'], $rowset[$post_nr]['post_subject'], $rowset[$post_nr]['poster_id']); } // $sql = "UNLOCK TABLES"; - // $result = $db->sql_query($sql); + // $result = phpbb::$db->sql_query($sql); } } -- cgit v1.2.1