Code

Added comman exec failed
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Mar 2008 08:30:29 +0000 (08:30 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 14 Mar 2008 08:30:29 +0000 (08:30 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9796 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/utils/class_msgPool.inc

index debfd66e75c7a3f28369019be9af03decdc60a49..0f81f961eeae85b9c195cd81b76eb914b819b3a2 100644 (file)
@@ -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 == ""){