mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-29 06:38:52 +00:00
Merge branch 'ticket/nickvergessen/9782' into develop-olympus
* ticket/nickvergessen/9782: [ticket/9782] Board disable radio set on when server load high
This commit is contained in:
commit
31144ed4c5
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Reference in a new issue