// load the cofiguration
foreach($opts as $k=>$v) {
- if ($v == '*') {
+ if ($v == '*') { // everything..
$this->cfg[$k] = $this->getDefaultCfg($k);
continue;
}
case 'BuildDB':
// by admin only?!?
//DB_DataObject::debugLevel(1);
- $this->buildDb('l');
- $this->buildDb('c');
- $this->buildDb('m');
+ $i = DB_DataObject::Factory('I18n');
+ $i->buildDb();
die("DONE!");
break;
}
$ret[] = array(
- 'code'=> $type=='l' ? strtolower($k) : strtoupper($k) . ($sub ? '_'.strtoupper($sub) : ''),
+ 'code'=> ($type=='l' ? strtolower($k) : strtoupper($k)) . ($sub ? '_'.strtoupper($sub) : ''),
'title' => $v
);
}