X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=DataObjects%2FI18n.php;h=709f6cad2e6d342e8186a3d6ed7e570d245e2ca0;hb=696acb656788cd22a74e06a7c6690070e52e2fab;hp=dd8b7cefe0612e348c4249b7cd8a3679fe5b62c6;hpb=f646816abcca8ffd49006198945b67e3e72aefd7;p=Pman.Core diff --git a/DataObjects/I18n.php b/DataObjects/I18n.php index dd8b7cef..709f6cad 100644 --- a/DataObjects/I18n.php +++ b/DataObjects/I18n.php @@ -138,9 +138,9 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject if (!empty($q['_filtered']) && !empty($this->ltype)) { $cfg = $this->cfg(); $filter = $cfg[$this->ltype]; - print_R($filter);exit; - $this->whereAddIn('lkey', $filter, 'string'); - + if(is_array($filter)){ + $this->whereAddIn('lkey', $filter, 'string'); + } } } @@ -249,6 +249,15 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject } $ret[] = '**'; break; + case 't': + require_once 'I18Nv2/PhonePrefix.php'; + $c = new I18Nv2_PhonePrefix('en'); + $ret = array_keys($c->codes); + if (!empty($cfg['add_t'])) { + $ret = array_merge($ret, array_keys($cfg['add_m'])); + } + $ret[] = '**'; + break; } @@ -280,6 +289,7 @@ class Pman_Core_DataObjects_I18n extends DB_DataObject $this->buildDB('c'); $this->buildDB('l'); $this->buildDB('m'); + $this->buildDB('t'); return; }