mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
[ticket/10897] Move bot delete data to the relevant foreach loop.
PHPBB3-10897
This commit is contained in:
parent
de6d741d96
commit
935bc33268
1 changed files with 9 additions and 9 deletions
|
@ -2128,15 +2128,6 @@ function change_database_data(&$no_updates, $version)
|
||||||
'W3C [Validator]' => array('W3C_Validator', ''),
|
'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)
|
foreach ($bots_to_update as $bot_name => $bot_array)
|
||||||
{
|
{
|
||||||
list($bot_agent, $bot_ip) = $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);
|
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)
|
foreach ($bots_to_delete as $bot_name)
|
||||||
{
|
{
|
||||||
$bot_name_clean = utf8_clean_string($bot_name);
|
$bot_name_clean = utf8_clean_string($bot_name);
|
||||||
|
|
Loading…
Add table
Reference in a new issue