projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
296096c
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Sep 2011 07:20:47 +0000
(15:20 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Sep 2011 07:20:47 +0000
(15:20 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/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;
$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();