From: hickert Date: Fri, 14 Mar 2008 08:30:29 +0000 (+0000) Subject: Added comman exec failed X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a6cbda659c3fe542a7a29aea81166b1a46bf8658;p=gosa.git Added comman exec failed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9796 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/utils/class_msgPool.inc b/gosa-core/include/utils/class_msgPool.inc index debfd66e7..0f81f961e 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -207,6 +207,18 @@ class msgPool } } + public static function cmdexecfailed($type, $command = "",$plugin="") + { + if(empty($command)){ + return (sprintf(_("The configured '%s' command wasn't successfully executed."), $type)); + }elseif($command != "" && $plugin != ""){ + return (sprintf(_("The configured '%s' command (%s) in plugin %s wasn't successfully executed."), $type,$command,$plugin)); + }elseif($plugin != "" && $command =""){ + return (sprintf(_("The configured '%s' command in plugin %s wasn't successfully executed."), $type,$plugin)); + }else{ + return (sprintf(_("The configured '%s' command (%s) wasn't successfully executed."), $type,$command)); + } + } public static function toobig($name, $min= "") { if ($min == ""){