I18n.php
[Pman.Core] / I18n.php
index 2545c88..d45c3b9 100644 (file)
--- 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();