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;