From a2dbe6826d00a6b977f5040c3edce48f89ed9a0f Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Sep 2011 15:20:47 +0800 Subject: [PATCH] I18n.php --- I18n.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) 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(); -- 2.39.2