From: Alan Knowles Date: Thu, 15 Sep 2011 04:06:19 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=e6cac9d9b9f084b295a825b6956602d41483d326 I18n.php --- diff --git a/I18n.php b/I18n.php index b1e8aca8..846094d3 100644 --- a/I18n.php +++ b/I18n.php @@ -94,16 +94,16 @@ class Pman_Core_I18N extends Pman $this->authUser = $au; $ff= HTML_FlexyFramework::get(); - + $opts = empty($ff->Pman_Core_I18N) ? (empty($ff->Pman_I18N) ? array() : $ff->Pman_I18N) : $ff->Pman_Core_I18N; - + $i = DB_DataObject::Factory('I18n'); // load the cofiguration foreach($opts as $k=>$v) { if ($v == '*') { // everything.. - $this->cfg[$k] = $this->getDefaultCfg($k); + $this->cfg[$k] = $i->available($k); continue; } $this->cfg[$k] = is_array($v) ? $v : explode(',', $v);