From: Marcel Werk Date: Fri, 28 Oct 2011 20:43:49 +0000 (+0200) Subject: Added character class X-Git-Tag: 2.0.0_Beta_1~1640 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=401c4756d5b1db6540eacee5e0ada03b646d603f;p=GitHub%2FWoltLab%2FWCF.git Added character class --- diff --git a/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php b/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php index fbfb7f5d3c..8d4581f292 100644 --- a/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php +++ b/wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php @@ -22,7 +22,7 @@ class IconPrefilterTemplatePlugin implements IPrefilterTemplatePlugin { public function execute($templateName, $sourceContent, TemplateScriptingCompiler $compiler) { $ldq = preg_quote($compiler->getLeftDelimiter(), '~'); $rdq = preg_quote($compiler->getRightDelimiter(), '~'); - $sourceContent = preg_replace("~{$ldq}icon size='?(S|M|L)'?{$rdq}([\w\.]+){$ldq}/icon{$rdq}~", '{literal}getStyle()->getIconPath(\'$2\', \'$1\'); ?>{/literal}', $sourceContent); + $sourceContent = preg_replace("~{$ldq}icon size='?([SML])'?{$rdq}([\w\.]+){$ldq}/icon{$rdq}~", '{literal}getStyle()->getIconPath(\'$2\', \'$1\'); ?>{/literal}', $sourceContent); return $sourceContent; }