Code

Updated property registry
[gosa.git] / gosa-core / include / class_log.inc
index 68210a88781719ca3a2ed6c4397e593e7503bb5a..13a128a74e0d8dfff262ed0f6976447e872aaae9 100644 (file)
@@ -42,7 +42,7 @@ class log {
 
     \sa log()
    */
-  function __construct($action,$objecttype,$object,$changes_array = array(),$result = "")
+  function log($action,$objecttype,$object,$changes_array = array(),$result = "")
   {
     if(!is_array($changes_array)){
       trigger_error("log(string,string,string,array(),bool). Forth parameter must be an array.");
@@ -99,11 +99,11 @@ class log {
     $msgs = array();
 
     if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot","view","security","debug"))){
-      $msgs[] = sprintf(_("Invalid option '%s' specified!"), $entry['action']);
+      $msgs[] = sprintf(_("Invalid option %s specified!"), bold($entry['action']));
     }
 
     if(!isset($entry['objecttype']) || empty($entry['objecttype'])){
-      $msgs[] = _("Specified objectType is empty or invalid!");
+      $msgs[] = _("Specified 'objectType' is empty or invalid!");
     }
   
     return($msgs);