mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
@@ -30,7 +30,7 @@
|
||||
use LibreNMS\Authentication\LegacyAuth;
|
||||
use LibreNMS\Config;
|
||||
|
||||
global $config, $vars, $console_color;
|
||||
global $vars, $console_color;
|
||||
|
||||
error_reporting(E_ERROR|E_PARSE|E_CORE_ERROR|E_COMPILE_ERROR);
|
||||
ini_set('display_errors', 1);
|
||||
@@ -126,8 +126,8 @@ if (!Config::has('install_dir')) {
|
||||
ini_set('display_errors', $display_bak);
|
||||
|
||||
|
||||
if (isset($config['php_memory_limit']) && is_numeric($config['php_memory_limit']) && $config['php_memory_limit'] > 128) {
|
||||
ini_set('memory_limit', $config['php_memory_limit'].'M');
|
||||
if (is_numeric(Config::get('php_memory_limit')) && Config::get('php_memory_limit') > 128) {
|
||||
ini_set('memory_limit', Config::get('php_memory_limit') . 'M');
|
||||
}
|
||||
|
||||
try {
|
||||
|
Reference in New Issue
Block a user