Merge commit 'origin/fusionax' into account
[platal.git] / classes / platallogger.php
index 447ff9e..9ff2e61 100644 (file)
@@ -71,7 +71,7 @@ class PlatalLogger extends PlLogger
             $proxy = 'proxy';
         }
 
-        XDB::execute("INSERT INTO  logger.sessions
+        XDB::execute("INSERT INTO  #logger#.sessions
                               SET  uid={?}, host={?}, ip={?}, forward_ip={?}, forward_host={?}, browser={?}, suid={?}, flags={?}",
                      $uid, $host, ip_to_uint($ip), ip_to_uint($forward_ip), $forward_host, $browser, $suid, $proxy);
         if ($forward_ip) {
@@ -88,7 +88,7 @@ class PlatalLogger extends PlLogger
     }
 
     public function saveLastSession() {
-        XDB::execute('REPLACE INTO  logger.last_sessions (uid, id)
+        XDB::execute('REPLACE INTO  #logger#.last_sessions (uid, id)
                             VALUES  ({?}, {?})',
                      $this->uid, $this->session);
     }
@@ -106,7 +106,7 @@ class PlatalLogger extends PlLogger
     public function log($action, $data = null)
     {
         if (isset($this->actions[$action])) {
-            XDB::execute("INSERT INTO  logger.events
+            XDB::execute("INSERT INTO  #logger#.events
                                   SET  session={?}, action={?}, data={?}",
                          $this->session, $this->actions[$action], $data);
         } else {