Code

Switched log call
[gosa.git] / plugins / admin / mimetypes / class_mimetypeManagement.inc
index fc87bec435a022931c95e0bfcabdafc23ca5b999..4955d2fe7677f72c5a0fa187469c9730ee5161f0 100755 (executable)
@@ -315,7 +315,7 @@ class mimetypeManagement extends plugin
           /* Normally this shouldn't be reached, send some extra
              logs to notify the administrator */
           print_red (_("You are not allowed to delete this mime type!"));
-          @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
+          new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
         }
         /* Remove lock file after successfull deletion */
         del_lock ($dn);
@@ -399,7 +399,7 @@ class mimetypeManagement extends plugin
         /* Normally this shouldn't be reached, send some extra
            logs to notify the administrator */
         print_red (_("You are not allowed to delete this mime type!"));
-        @log::log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
+        new log("security","mimetypes/".get_class($this),$dn,array(),"Tried to trick deletion.");
       }
 
       /* Remove lock file after successfull deletion */