From e6926235e46d215b45b9cbc00f8971439a75b7ea Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 14 Mar 2008 08:26:46 +0000 Subject: [PATCH] Added invalid command message git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9795 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 c2bb2d135..debfd66e7 100644 --- a/gosa-core/include/utils/class_msgPool.inc +++ b/gosa-core/include/utils/class_msgPool.inc @@ -194,6 +194,18 @@ class msgPool return (sprintf(_("Command specified as %s hook for plugin '%s' does not exist!"), $type, $plugin)); } + public static function cmdinvalid($type, $command = "",$plugin="") + { + if(empty($command)){ + return (sprintf(_("The configured '%s' command is not a valid command."), $type)); + }elseif($command != "" && $plugin != ""){ + return (sprintf(_("The configured '%s' command (%s) in plugin %s is not a valid command."), $type,$command,$plugin)); + }elseif($plugin != "" && $command =""){ + return (sprintf(_("The configured '%s' command in plugin %s is not a valid command."), $type,$plugin)); + }else{ + return (sprintf(_("The configured '%s' command (%s) is not a valid command."), $type,$command)); + } + } public static function toobig($name, $min= "") { -- 2.30.2