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:
mdtrooper 2010-05-13 15:30:57 +00:00
parent 7c89c8954e
commit f262b323d7
2 changed files with 13 additions and 0 deletions

View File

@ -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

View File

@ -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;