// returns a list of all countries/languages etc.. (with '*')
- function availableCodes($t)
+ function availableCodes($t, $filtered = true)
{
$ret = array();
$cfg = $this->cfg();
$ret[] = '**';
break;
}
- if (!empty($cfg[$t]) && is_array($cfg[$t])) {
+
+
+
+ if ($filtered && !empty($cfg[$t]) && is_array($cfg[$t])) {
// then there is a filter. - we should include all of them, even if they are not relivatn??
return $cfg[$t]; //array_intersect($cfg[$t], $ret);