mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-25 12:35:55 +02:00
[ticket/10046] Do not link bots to cron.php.
Bots, generally speaking, will not request cron.php immediately, thus telling them to request it is pointless. PHPBB3-10046
This commit is contained in:
committed by
Andreas Fischer
parent
a8f2e79fbc
commit
9a48045254
@ -4611,7 +4611,7 @@ function page_footer($run_cron = true)
|
||||
|
||||
// Call cron-type script
|
||||
$call_cron = false;
|
||||
if (!defined('IN_CRON') && $run_cron && !$config['board_disable'])
|
||||
if (!defined('IN_CRON') && $run_cron && !$config['board_disable'] && !$user->data['is_bot'])
|
||||
{
|
||||
$call_cron = true;
|
||||
$time_now = (!empty($user->time_now) && is_int($user->time_now)) ? $user->time_now : time();
|
||||
|
Reference in New Issue
Block a user