replace <i> tag by <span> for displaying icons

This commit is contained in:
Manuel Raynaud
2013-09-10 17:07:20 +02:00
parent 04d517208f
commit 66d6f86b9a
5 changed files with 23 additions and 23 deletions

View File

@@ -85,7 +85,7 @@ class SmartyParser extends Smarty implements ParserInterface
$this->registerFilter('output', array($this, "removeBlankLines"));
$this->registerFilter('variable', array(__CLASS__, "theliaEscape"));
}
public function removeBlankLines($tpl_source, \Smarty_Internal_Template $template)
{
return preg_replace("/(^[\r\n]*|[\r\n]+)[\s\t]*[\r\n]+/", "\n", $tpl_source);