mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-04 15:57:45 +02:00
[ticket/9782] Board disable radio set on when server load high
PHPBB3-9782
This commit is contained in:
@@ -1831,7 +1831,7 @@ class user extends session
|
|||||||
// Is load exceeded?
|
// Is load exceeded?
|
||||||
if ($config['limit_load'] && $this->load !== false)
|
if ($config['limit_load'] && $this->load !== false)
|
||||||
{
|
{
|
||||||
if ($this->load > floatval($config['limit_load']) && !defined('IN_LOGIN'))
|
if ($this->load > floatval($config['limit_load']) && !defined('IN_LOGIN') && !defined('IN_ADMIN'))
|
||||||
{
|
{
|
||||||
// Set board disabled to true to let the admins/mods get the proper notification
|
// Set board disabled to true to let the admins/mods get the proper notification
|
||||||
$config['board_disable'] = '1';
|
$config['board_disable'] = '1';
|
||||||
|
Reference in New Issue
Block a user