From: hickert Date: Mon, 10 Mar 2008 10:37:39 +0000 (+0000) Subject: Added msgPool smarty function. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=ccd0d57f7cda525576c6ad4922af9c4a72ab93e8;p=gosa.git Added msgPool smarty function. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9486 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/smarty/plugins/function.msgPool.php b/gosa-core/include/smarty/plugins/function.msgPool.php new file mode 100644 index 000000000..d8688ddd9 --- /dev/null +++ b/gosa-core/include/smarty/plugins/function.msgPool.php @@ -0,0 +1,21 @@ + $value){ + if(!preg_match("/^type$/i",$para)){ + $parameter[$para] = $value; + } + } + if(is_callable("msgPool::".$params['type'])){ + echo call_user_func_array("msgPool::".$params['type'], $parameter); + }else{ + trigger_error("Unknown msgPool function ".$params['type']); + } + }else{ + trigger_error("Unknown class msgPool."); + } +} +?>