projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d5771db
)
I18n.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Sep 2011 04:06:19 +0000
(12:06 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 15 Sep 2011 04:06:19 +0000
(12:06 +0800)
I18n.php
patch
|
blob
|
history
diff --git
a/I18n.php
b/I18n.php
index
b1e8aca
..
846094d
100644
(file)
--- a/
I18n.php
+++ b/
I18n.php
@@
-94,16
+94,16
@@
class Pman_Core_I18N extends Pman
$this->authUser = $au;
$ff= HTML_FlexyFramework::get();
$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;
$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..
// 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);
continue;
}
$this->cfg[$k] = is_array($v) ? $v : explode(',', $v);