41 parent::__construct();
42 $this->varName =
'tx';
43 $this->params = array(
48 $this->redir =
'?file=language&action=array&xh_success=language';
50 foreach ($tx as $cat => $opts) {
51 $this->cfg[$cat] = array();
52 foreach ($opts as $name => $val) {
54 if ($cat ==
'meta' && $name ==
'codepage') {
57 $co = array(
'val' => $val,
'type' =>
'text',
'isAdvanced' =>
false);
58 if ($cat ==
'subsite' && $name ==
'template') {
59 if ($sl === $cf[
'language'][
'default']) {
60 $co[
'type'] =
'hidden';
63 $co[
'vals'] = $this->selectOptions(
'templates',
'/^([^\.]*)$/i');
64 array_unshift($co[
'vals'],
'');
67 $this->cfg[$cat][$name] = $co;
if(!isset($cf['folders']['content'])) if($cf['site']['timezone'] !=='' &&function_exists('date_default_timezone_set')) $sl