mcramer
2012-09-13 65ea2ecf27418feaf7681a02d74168d0d82626fb
interface/lib/app.inc.php
@@ -81,7 +81,8 @@
         if(empty($_SESSION['s']['language'])) $_SESSION['s']['language'] = $conf['language'];
      }
      $this->uses('auth,plugin,functions');
        $this->uses('functions'); // we need this before all others!
      $this->uses('auth,plugin');
   }
   
   public function __destruct() {
@@ -119,7 +120,7 @@
      if($priority >= $this->_conf['log_priority']) {
         // $server_id = $conf["server_id"];
         $server_id = 0;
         $priority = intval($priority);
         $priority = $this->functions->intval($priority);
         $tstamp = time();
         $msg = $this->db->quote('[INTERFACE]: '.$msg);
         $this->db->query("INSERT INTO sys_log (server_id,datalog_id,loglevel,tstamp,message) VALUES ($server_id,0,$priority,$tstamp,'$msg')");