diff options
| author | Oleg Pudeyev <oleg@bsdpower.com> | 2011-03-02 06:43:10 -0500 |
|---|---|---|
| committer | Andreas Fischer <bantu@phpbb.com> | 2011-03-12 14:57:34 +0100 |
| commit | 9a4804525471b69b1ed0beb4ea7145faeb8855b8 (patch) | |
| tree | 4986bfcb0b451da6163f9a04f8a1099f56bc3674 | |
| parent | a8f2e79fbc485c0133e616068570ed369e23935c (diff) | |
| download | forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar.gz forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar.bz2 forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.tar.xz forums-9a4804525471b69b1ed0beb4ea7145faeb8855b8.zip | |
[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
| -rw-r--r-- | phpBB/includes/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index 6a2d132175..80b51f80ae 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -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(); |
