From d28fb180fb5fc04ebbe2834652f577b923deea2a Mon Sep 17 00:00:00 2001 From: jsatoh Date: Mon, 17 May 2010 03:31:18 +0000 Subject: [PATCH] 2010-05-17 Junichi Satoh * include/gettext.php: Changed the judgment method for 64bit systems. 'x86_64' is not acceptable by some systems. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2734 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/gettext.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9d2ee88664..0f0dfca136 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-05-17 Junichi Satoh + + * include/gettext.php: Changed the judgment method for 64bit systems. + 'x86_64' is not acceptable by some systems. + 2010-05-14 Raúl Mateos * operation/agentes/gis_view.php, tactical.php: Clean code. Updated year. diff --git a/pandora_console/include/gettext.php b/pandora_console/include/gettext.php index 61d5d7c80f..67549111de 100644 --- a/pandora_console/include/gettext.php +++ b/pandora_console/include/gettext.php @@ -103,7 +103,7 @@ class gettext_reader { $machine = @shell_exec('uname -m'); $enabled64Bits = false; - if ($machine == 'x86_64') { + if (ereg('64', $machine)) { $enabled64Bits = true; }