mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 23:25:30 +02:00
[ticket/10897] Move bot delete data to the relevant foreach loop.
PHPBB3-10897
This commit is contained in:
parent
de6d741d96
commit
935bc33268
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user