Marius Cramer
2013-11-14 7fe908c50c8dbc5cc05f571dbe11d66141caacd4
interface/lib/app.inc.php
@@ -96,7 +96,7 @@
            $classname = trim($classname);
            //* Class is not loaded so load it
            if(!array_key_exists($classname, $this->_loaded_classes)) {
               include_once(ISPC_CLASS_PATH."/$classname.inc.php");
               include_once ISPC_CLASS_PATH."/$classname.inc.php";
               $this->$classname = new $classname();
               $this->_loaded_classes[$classname] = true;
            }
@@ -109,12 +109,14 @@
      if(is_array($fl)) {
         foreach($fl as $file) {
            $file = trim($file);
            include_once(ISPC_CLASS_PATH."/$file.inc.php");
            include_once ISPC_CLASS_PATH."/$file.inc.php";
         }
      }
   }
   /** Priority values are: 0 = DEBUG, 1 = WARNING,  2 = ERROR */
   public function log($msg, $priority = 0) {
      global $conf;
      if($priority >= $this->_conf['log_priority']) {
@@ -198,7 +200,7 @@
      $filename = ISPC_ROOT_PATH.'/'.$filename;
      if(substr($filename,-4) != '.lng') $this->error('Language file has wrong extension.');
      if(file_exists($filename)) {
         @include($filename);
         @include $filename;
         if(is_array($wb)) {
            if(is_array($this->_wb)) {
               $this->_wb = array_merge($this->_wb,$wb);