From a6cbda659c3fe542a7a29aea81166b1a46bf8658 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Mar 2008 08:30:29 +0000 Subject: [PATCH] Added comman exec failed git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9796 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/utils/class_msgPool.inc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 == ""){ -- 2.30.2