From f262b323d7cf049cc7e3637a54881dbbe812e0ab Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Thu, 13 May 2010 15:30:57 +0000 Subject: [PATCH] 2010-05-13 Miguel de Dios * include/gettext.php: fixed the bug of pseudo-gettext with diferent arquitectures. Now check the arquitecture before. Fixes: #2991545 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2720 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/gettext.php | 7 +++++++ 2 files changed, 13 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 686cfb20d4..e96a032327 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2010-05-13 Miguel de Dios + + * include/gettext.php: fixed the bug of pseudo-gettext with diferent + arquitectures. Now check the arquitecture before. + Fixes: #2991545 + 2010-05-13 Miguel de Dios * pandoradb.sql: fixed the syntax of sql for compatibility of mysql 5.0 that diff --git a/pandora_console/include/gettext.php b/pandora_console/include/gettext.php index d74db83633..fa86b57e69 100644 --- a/pandora_console/include/gettext.php +++ b/pandora_console/include/gettext.php @@ -100,6 +100,13 @@ class gettext_reader { * @param boolean enable_cache Enable or disable caching of strings (default on) */ function gettext_reader($Reader, $enable_cache = true) { + $machine = @shell_exec('uname -m'); + + $enabled64Bits = false; + if ($machine == 'x86_64') { + $enabled64Bits = true; + } + // If there isn't a StreamReader, turn on short circuit mode. if (! $Reader || isset($Reader->error) ) { $this->short_circuit = true;