Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/SmartyPlugins/block.purify.php')
-rw-r--r--core/SmartyPlugins/block.purify.php39
1 files changed, 18 insertions, 21 deletions
diff --git a/core/SmartyPlugins/block.purify.php b/core/SmartyPlugins/block.purify.php
index 8768b5aea8..be168dbcdd 100644
--- a/core/SmartyPlugins/block.purify.php
+++ b/core/SmartyPlugins/block.purify.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
*/
@@ -31,28 +31,25 @@
*/
function smarty_block_purify($params, $content, &$smarty)
{
- if (is_null($content))
- {
- return;
- }
+ if (is_null($content)) {
+ return;
+ }
- $assign = null;
+ $assign = null;
- foreach ($params as $_key => $_val)
- {
- switch ($_key)
- {
- case 'assign':
- $$_key = (string)$_val;
- break;
+ foreach ($params as $_key => $_val) {
+ switch ($_key) {
+ case 'assign':
+ $$_key = (string)$_val;
+ break;
- default:
- $smarty->trigger_error("purify: unknown attribute '$_key'");
- }
- }
+ default:
+ $smarty->trigger_error("purify: unknown attribute '$_key'");
+ }
+ }
- $purifier = Piwik_HTMLPurifier::getInstance();
- $output = $purifier->purify($content);
+ $purifier = Piwik_HTMLPurifier::getInstance();
+ $output = $purifier->purify($content);
- return $assign ? $smarty->assign($assign, $output) : $output;
+ return $assign ? $smarty->assign($assign, $output) : $output;
}