From: Alan Knowles Date: Thu, 15 Sep 2011 07:20:47 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=a2dbe6826d00a6b977f5040c3edce48f89ed9a0f I18n.php --- diff --git a/I18n.php b/I18n.php index 2545c880..d45c3b96 100644 --- a/I18n.php +++ b/I18n.php @@ -71,17 +71,8 @@ class Pman_Core_I18N extends Pman $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] = $i->availableCodes($k); - continue; - } - $this->cfg[$k] = is_array($v) ? $v : explode(',', $v); - } - + $i = DB_DataObject::Factory('I18n'); + $this->cfg = $i->cfg();