Changeset 1491 in t29-www for lib/menu.php


Ignore:
Timestamp:
Feb 4, 2019, 1:08:16 PM (10 months ago)
Author:
sven
Message:

Adding a small blog (incl. first post), fixing english imprint.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/menu.php

    r1074 r1491  
    3737                // will fetch them with libxml_get_errors later.
    3838                //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                        }
    4448                }
    4549        }
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License