diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2009-02-22 18:06:05 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2009-02-22 18:06:05 +0000 |
| commit | 84f795e9fbd172924280593d575bf4587c9b40e5 (patch) | |
| tree | 45ac9db0e053f78f8c240370ad5dc5f8f34cb730 /phpBB/develop/search_fill.php | |
| parent | 95b69cfa7f66e721cea3f8a5d62ad1cb2b822cfc (diff) | |
| download | forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar.gz forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar.bz2 forums-84f795e9fbd172924280593d575bf4587c9b40e5.tar.xz forums-84f795e9fbd172924280593d575bf4587c9b40e5.zip | |
$db-> to phpbb::$db->
git-svn-id: file:///svn/phpbb/trunk@9336 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/develop/search_fill.php')
| -rw-r--r-- | phpBB/develop/search_fill.php | 18 |
1 files changed, 9 insertions, 9 deletions
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 "<html>\n<body>\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<p>\n<a href='{$_SERVER['PHP_SELF']}?batchstart=$batchstart'>Restart from posting $batchstart</a><br>\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); } } |
