From 00d96ba2cd3f93272474e51a2c7f5b1a35616ec3 Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Fri, 23 May 2008 13:58:42 -0400 Subject: [PATCH] Rewriting of the config files is optional during update now. --- interface/lib/classes/listform_actions.inc.php | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/interface/lib/classes/listform_actions.inc.php b/interface/lib/classes/listform_actions.inc.php index cfe880c..e45a574 100644 --- a/interface/lib/classes/listform_actions.inc.php +++ b/interface/lib/classes/listform_actions.inc.php @@ -40,17 +40,14 @@ private $id; private $idx_key; private $DataRowColor; - private $SQLExtWhere = ''; - private $SQLOrderBy = ''; + public $SQLExtWhere = ''; + public $SQLOrderBy = ''; public function onLoad() { global $app, $conf, $list_def_file; - //TODO: this is_object checking should be in the $appobject - pedro notes - if(!@is_object($app->tpl)) $app->uses('tpl'); - if(!@is_object($app->listform)) $app->uses('listform'); - if(!@is_object($app->tform)) $app->uses('tform'); + $app->uses('tpl,listform,tform'); //* Clear session variable that is used when lists are embedded with the listview plugin $_SESSION['s']['form']['return_to'] = ''; @@ -68,7 +65,6 @@ // Getting Datasets from DB $records = $app->db->queryAllRecords($this->getQueryString()); - $this->DataRowColor = "#FFFFFF"; $records_new = ''; @@ -100,7 +96,7 @@ foreach($app->listform->listDef['item'] as $field) { $key = $field['field']; if(isset($field['formtype']) && $field['formtype'] == 'SELECT') { - $rec[$key] = $field['value'][$rec[$key]]; + $rec[$key] = @$field['value'][$rec[$key]]; } } @@ -142,7 +138,12 @@ { global $app; - //* Set Language File + //* Set global Language File + $lng_file = ISPC_LIB_PATH.'/lang/'.$_SESSION['s']['language'].'.lng'; + include($lng_file); + $app->tpl->setVar($wb); + + //* Set local Language File $lng_file = 'lib/lang/'.$_SESSION['s']['language'].'_'.$app->listform->listDef['name'].'_list.lng'; include($lng_file); $app->tpl->setVar($wb); -- Gitblit v1.9.1