index 68210a88781719ca3a2ed6c4397e593e7503bb5a..13a128a74e0d8dfff262ed0f6976447e872aaae9 100644 (file)
\sa 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.");
{
if(!is_array($changes_array)){
trigger_error("log(string,string,string,array(),bool). Forth parameter must be an array.");
$msgs = array();
if(!isset($entry['action']) || !in_array($entry['action'],array("modify","create","remove","copy","snapshot","view","security","debug"))){
$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'])){
}
if(!isset($entry['objecttype']) || empty($entry['objecttype'])){
- $msgs[] = _("Specified objectType is empty or invalid!");
+ $msgs[] = _("Specified 'objectType' is empty or invalid!");
}
return($msgs);
}
return($msgs);