X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=I18n.php;h=bab0b2d35ce105eea8a2480caf0d8ab7ff4f44ee;hp=6536b2f44e818249485c8f8343c6b82a736ff1aa;hb=refs%2Fheads%2Fmaster;hpb=d4be3dcef6000ac7e07161320eee832df409bb60 diff --git a/I18n.php b/I18n.php index 6536b2f4..bab0b2d3 100644 --- a/I18n.php +++ b/I18n.php @@ -62,7 +62,7 @@ class Pman_Core_I18n extends Pman //return true; $au = $this->getAuthUser(); //if (!$au) { - // $this->jerr("Not authenticated", array('authFailure' => true)); + // $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true)); //} $this->authUser = $au; @@ -234,7 +234,13 @@ class Pman_Core_I18n extends Pman if (empty($k)) { return '??'; } - $fo = &PEAR::getStaticProperty('HTML_Template_Flexy','options'); + + if(class_exists('HTML_FlexyFramework2', false)) { + $fo = HTML_FlexyFramework2::get()->HTML_Template_Flexy; + } + else { + $fo = &PEAR::getStaticProperty('HTML_Template_Flexy','options'); + } $fallback_lang = empty($fo['locale']) ? 'en' : $fo['locale'];