From f9191352bf0e914f2074b63bbfd83b95c36819a4 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 16 Aug 2013 10:02:07 +0000 Subject: [PATCH] 2013-08-16 Miguel de Dios * extensions/pandora_logs.php: fixed the translation the human size of php memory limit to bytes size limit. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8668 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/extensions/pandora_logs.php | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 6d96b6d305..50276c2bfb 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2013-08-16 Miguel de Dios + + * extensions/pandora_logs.php: fixed the translation the human + size of php memory limit to bytes size limit. + 2013-08-16 Miguel de Dios * include/ajax/module.php, include/javascript/pandora_modules.js: diff --git a/pandora_console/extensions/pandora_logs.php b/pandora_console/extensions/pandora_logs.php index 114c669a15..8ac00d85ce 100644 --- a/pandora_console/extensions/pandora_logs.php +++ b/pandora_console/extensions/pandora_logs.php @@ -18,7 +18,8 @@ function view_logfile ($file_name) { global $config; $memory_limit = ini_get("memory_limit"); - if (strstr("M", $memory_limit) !== false) { + + if (strstr($memory_limit, "M") !== false) { $memory_limit = str_replace("M", "", $memory_limit); $memory_limit = $memory_limit * 1024 * 1024;