Changeset 1491 in t29-www for lib/menu.php
- Timestamp:
- Feb 4, 2019, 1:08:16 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/menu.php
r1074 r1491 37 37 // will fetch them with libxml_get_errors later. 38 38 //libxml_use_internal_errors(true); 39 40 // load xml file 41 $this->xml = simplexml_load_file($this->conf['webroot'].$this->conf['lang_path'] . '/' . self::navigation_file); 42 if($this->xml_is_defective()) { 43 trigger_error("Kann Navigationsdatei nicht verwenden, da das XML nicht sauber ist. Bitte reparieren!"); 39 40 if(!function_exists("simplexml_load_file")) { 41 trigger_error("t29Menu: Require SimpleXML PHP extension to load menu."); 42 } else { 43 // load xml file 44 $this->xml = simplexml_load_file($this->conf['webroot'].$this->conf['lang_path'] . '/' . self::navigation_file); 45 if($this->xml_is_defective()) { 46 trigger_error("Kann Navigationsdatei nicht verwenden, da das XML nicht sauber ist. Bitte reparieren!"); 47 } 44 48 } 45 49 }
Note: See TracChangeset
for help on using the changeset viewer.