Added character class
authorMarcel Werk <burntime@woltlab.com>
Fri, 28 Oct 2011 20:43:49 +0000 (22:43 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 28 Oct 2011 20:43:49 +0000 (22:43 +0200)
wcfsetup/install/files/lib/system/template/plugin/IconPrefilterTemplatePlugin.class.php

index fbfb7f5d3c2ab4693c247f5b177b99279565269d..8d4581f2924b27e3aea8f09f2fba94a3430dd87b 100644 (file)
@@ -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}<?php echo \wcf\system\style\StyleHandler::getInstance()->getStyle()->getIconPath(\'$2\', \'$1\'); ?>{/literal}', $sourceContent);
+               $sourceContent = preg_replace("~{$ldq}icon size='?([SML])'?{$rdq}([\w\.]+){$ldq}/icon{$rdq}~", '{literal}<?php echo \wcf\system\style\StyleHandler::getInstance()->getStyle()->getIconPath(\'$2\', \'$1\'); ?>{/literal}', $sourceContent);
 
                return $sourceContent;
        }