mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00: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:
parent
a8f2e79fbc
commit
9a48045254
1 changed files with 1 additions and 1 deletions
|
@ -4611,7 +4611,7 @@ function page_footer($run_cron = true)
|
||||||
|
|
||||||
// Call cron-type script
|
// Call cron-type script
|
||||||
$call_cron = false;
|
$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;
|
$call_cron = true;
|
||||||
$time_now = (!empty($user->time_now) && is_int($user->time_now)) ? $user->time_now : time();
|
$time_now = (!empty($user->time_now) && is_int($user->time_now)) ? $user->time_now : time();
|
||||||
|
|
Loading…
Add table
Reference in a new issue