LSerror : Added LSlog() call on addErrorCode() method
authorBenjamin Renard <brenard@easter-eggs.com>
Fri, 22 Apr 2011 12:30:04 +0000 (14:30 +0200)
committerBenjamin Renard <brenard@easter-eggs.com>
Fri, 22 Apr 2011 12:30:04 +0000 (14:30 +0200)
public_html/includes/class/class.LSerror.php

index d1d03e9..a7ea698 100644 (file)
@@ -64,6 +64,7 @@ class LSerror {
    */ 
   public static function addErrorCode($code=-1,$msg='') {
     $_SESSION['LSerror'][] = array($code,$msg);
+    LSlog('[ERROR] '.self::getError(array($code,$msg)));
   }
   
   /**