mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Minor fix in memory detection UMC
This commit is contained in:
parent
ee4868d433
commit
60de51cfdb
@ -231,6 +231,21 @@ if (is_ajax() !== true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$PHPmemory_limit_min = config_return_in_bytes('800M');
|
||||||
|
$PHPmemory_limit = config_return_in_bytes(ini_get('memory_limit'));
|
||||||
|
if ($PHPmemory_limit < $PHPmemory_limit_min && $PHPmemory_limit !== -1) {
|
||||||
|
$msg = __(
|
||||||
|
'\'%s\' recommended value is %s or greater. Please, change it on your PHP configuration file (php.ini) or contact with administrator',
|
||||||
|
'memory_limit',
|
||||||
|
'800M'
|
||||||
|
);
|
||||||
|
if (function_exists('ui_print_warning_message') === true) {
|
||||||
|
ui_print_warning_message($msg);
|
||||||
|
} else {
|
||||||
|
echo $msg;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load styles.
|
// Load styles.
|
||||||
@ -366,21 +381,6 @@ if (is_array($config) === true) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$PHPmemory_limit_min = config_return_in_bytes('800M');
|
|
||||||
$PHPmemory_limit = config_return_in_bytes(ini_get('memory_limit'));
|
|
||||||
if ($PHPmemory_limit < $PHPmemory_limit_min && $PHPmemory_limit !== '-1') {
|
|
||||||
$msg = __(
|
|
||||||
'\'%s\' recommended value is %s or greater. Please, change it on your PHP configuration file (php.ini) or contact with administrator',
|
|
||||||
'memory_limit',
|
|
||||||
'800M'
|
|
||||||
);
|
|
||||||
if (function_exists('ui_print_warning_message') === true) {
|
|
||||||
ui_print_warning_message($msg);
|
|
||||||
} else {
|
|
||||||
echo $msg;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$ui = new Manager(
|
$ui = new Manager(
|
||||||
((is_array($config) === true) ? $pandora_url : 'http://'.$_SERVER['SERVER_ADDR'].'/'),
|
((is_array($config) === true) ? $pandora_url : 'http://'.$_SERVER['SERVER_ADDR'].'/'),
|
||||||
((is_array($config) === true) ? ui_get_full_url('ajax.php') : ''),
|
((is_array($config) === true) ? ui_get_full_url('ajax.php') : ''),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user