2010-05-13 Miguel de Dios <miguel.dedios@artica.es>
* 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
This commit is contained in:
parent
7c89c8954e
commit
f262b323d7
|
@ -1,3 +1,9 @@
|
|||
2010-05-13 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* 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 <miguel.dedios@artica.es>
|
||||
|
||||
* pandoradb.sql: fixed the syntax of sql for compatibility of mysql 5.0 that
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue