diff options
Diffstat (limited to 'core/SmartyPlugins/function.postEvent.php')
-rw-r--r-- | core/SmartyPlugins/function.postEvent.php | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/core/SmartyPlugins/function.postEvent.php b/core/SmartyPlugins/function.postEvent.php index ff43fd91fe..079822e530 100644 --- a/core/SmartyPlugins/function.postEvent.php +++ b/core/SmartyPlugins/function.postEvent.php @@ -1,10 +1,10 @@ <?php /** * Piwik - Open source web analytics - * + * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later - * + * * @category Piwik * @package SmartyPlugins */ @@ -30,13 +30,12 @@ */ function smarty_function_postEvent($params, &$smarty) { - if(!isset($params['name'])) - { - throw new Exception("The smarty function postEvent needs a 'name' parameter."); - } - $eventName = $params['name']; - - $str = ''; - Piwik_PostEvent($eventName, $str); - return $str; + if (!isset($params['name'])) { + throw new Exception("The smarty function postEvent needs a 'name' parameter."); + } + $eventName = $params['name']; + + $str = ''; + Piwik_PostEvent($eventName, $str); + return $str; } |