From ccd0d57f7cda525576c6ad4922af9c4a72ab93e8 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 10 Mar 2008 10:37:39 +0000 Subject: [PATCH] Added msgPool smarty function. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9486 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../smarty/plugins/function.msgPool.php | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 gosa-core/include/smarty/plugins/function.msgPool.php 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."); + } +} +?> -- 2.30.2