diff options
Diffstat (limited to 'phpBB/develop')
-rw-r--r-- | phpBB/develop/repair_bots.php | 4 | ||||
-rw-r--r-- | phpBB/develop/search_fill.php | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/develop/repair_bots.php b/phpBB/develop/repair_bots.php index 6d3e57da57..dc38726e7c 100644 --- a/phpBB/develop/repair_bots.php +++ b/phpBB/develop/repair_bots.php @@ -94,7 +94,7 @@ echo 'done'; */ function add_bots($bots) { - global $db, $config; + global $db; $sql = 'SELECT group_id FROM ' . GROUPS_TABLE . " WHERE group_name = 'BOTS'"; $result = $db->sql_query($sql); @@ -126,7 +126,7 @@ function add_bots($bots) 'user_password' => '', 'user_colour' => '9E8DA7', 'user_email' => '', - 'user_lang' => $config['default_lang'], + 'user_lang' => phpbb::$config['default_lang'], 'user_style' => 1, 'user_timezone' => 0, 'user_allow_massemail' => 0, diff --git a/phpBB/develop/search_fill.php b/phpBB/develop/search_fill.php index 23acee6a1a..af2dd6a288 100644 --- a/phpBB/develop/search_fill.php +++ b/phpBB/develop/search_fill.php @@ -32,7 +32,7 @@ $user->session_begin(); $auth->acl($user->data); $user->setup(); -$search_type = $config['search_type']; +$search_type = phpbb::$config['search_type']; if (!file_exists(PHPBB_ROOT_PATH . 'includes/search/' . $search_type . '.' . PHP_EXT)) { @@ -76,7 +76,7 @@ for(;$postcounter <= $max_post_id; $postcounter += $batchsize) $batchstart = $postcounter + 1; $batchend = $postcounter + $batchsize; $batchcount++; - + $sql = "SELECT * FROM " . POSTS_TABLE . " WHERE post_id @@ -92,7 +92,7 @@ for(;$postcounter <= $max_post_id; $postcounter += $batchsize) $db->sql_freeresult($result); $post_rows = sizeof($rowset); - + if( $post_rows ) { |