foreach($this->cfg[$type] as $k) {
$sub = false;
+
if (strpos($k, '_') !== false) {
$bits = explode('_', $k);
$k = array_shift($bits);
}
$ret[] = array(
- 'code'=> $type=='l' ? strtolower($k) : strtoupper($k),
+ 'code'=> $type=='l' ? strtolower($k) : strtoupper($k) . ($sub ? '_'.strtoupper($sub) : ''),
'title' => $v
);
}