From 4ce424a66f4e2fe9a3909ac01951fa0058e5ba1b Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 10 Dec 2008 13:55:09 +0000 Subject: [PATCH] Updated config reload git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13244 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_config.inc | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/gosa-core/include/class_config.inc b/gosa-core/include/class_config.inc index 5d10616bf..4c56f658c 100644 --- a/gosa-core/include/class_config.inc +++ b/gosa-core/include/class_config.inc @@ -99,26 +99,19 @@ class config { xml_set_object($this->parser, $this); xml_set_element_handler($this->parser, "tag_open", "tag_close"); $this->parse($this->filename); -# if(session::is_set('plist')){ -# session::un_set('plist'); -# } -# if(session::is_set('plug')){ -# session::un_set('plug'); -# } -# if(isset($_GET['plug'])){ -# unset($_GET['plug']); -# } } } function parse($filename) { + $this->data = array(); + $this->last_modified = filemtime($filename); $this->filename = $filename; $fh= fopen($filename, "r"); $xmldata= fread($fh, 100000); - fclose($fh); + fclose($fh); if(!xml_parse($this->parser, chop($xmldata))){ $msg = sprintf(_("XML error in gosa.conf: %s at line %d"), xml_error_string(xml_get_error_code($this->parser)), -- 2.30.2