aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@phpbb.com>2012-11-09 12:19:58 +0100
committerAndreas Fischer <bantu@phpbb.com>2012-11-09 12:19:58 +0100
commit935bc33268bb062158d6421242335483fcd955bd (patch)
tree036afbe6d8bed33ecc89ace4da11d9e8876bb94e /phpBB/install
parentde6d741d96e57a704e7653e8c73a20b3c196a0d9 (diff)
downloadforums-935bc33268bb062158d6421242335483fcd955bd.tar
forums-935bc33268bb062158d6421242335483fcd955bd.tar.gz
forums-935bc33268bb062158d6421242335483fcd955bd.tar.bz2
forums-935bc33268bb062158d6421242335483fcd955bd.tar.xz
forums-935bc33268bb062158d6421242335483fcd955bd.zip
[ticket/10897] Move bot delete data to the relevant foreach loop.
PHPBB3-10897
Diffstat (limited to 'phpBB/install')
-rw-r--r--phpBB/install/database_update.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php
index c8675fa95a..0372b6e608 100644
--- a/phpBB/install/database_update.php
+++ b/phpBB/install/database_update.php
@@ -2128,15 +2128,6 @@ function change_database_data(&$no_updates, $version)
'W3C [Validator]' => array('W3C_Validator', ''),
);
- $bots_to_delete = array(
- 'NG-Search [Bot]',
- 'Nutch/CVS [Bot]',
- 'OmniExplorer [Bot]',
- 'Seekport [Bot]',
- 'Synoo [Bot]',
- 'WiseNut [Bot]',
- );
-
foreach ($bots_to_update as $bot_name => $bot_array)
{
list($bot_agent, $bot_ip) = $bot_array;
@@ -2166,6 +2157,15 @@ function change_database_data(&$no_updates, $version)
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
}
+ $bots_to_delete = array(
+ 'NG-Search [Bot]',
+ 'Nutch/CVS [Bot]',
+ 'OmniExplorer [Bot]',
+ 'Seekport [Bot]',
+ 'Synoo [Bot]',
+ 'WiseNut [Bot]',
+ );
+
foreach ($bots_to_delete as $bot_name)
{
$bot_name_clean = utf8_clean_string($bot_name);