From 401c4756d5b1db6540eacee5e0ada03b646d603f Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 28 Oct 2011 22:43:49 +0200 Subject: [PATCH] Added character class --- .../template/plugin/IconPrefilterTemplatePlugin.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.20.1