[+BUGFIX] Fluid (Core): Allow ViewHelpers to be placed in t3lib and tslib
authorSebastian Kurfürst <sebastian@typo3.org>
Tue, 18 Jan 2011 05:03:16 +0000 (05:03 +0000)
committerSebastian Kurfürst <sebastian@typo3.org>
Tue, 18 Jan 2011 05:03:16 +0000 (05:03 +0000)
The Fluid template parser does now recognize ViewHelpers inside t3lib/
or sysext/cms/tslib/, so Fluid can now be used inside the TYPO3 core.

Thanks to Andreas Wolf for the patch!

Resolves: #12061

typo3/sysext/fluid/Classes/Core/Parser/TemplateParser.php

index 10ceb6b..9d8a928 100644 (file)
@@ -27,7 +27,7 @@
  */
 class Tx_Fluid_Core_Parser_TemplateParser implements t3lib_Singleton {
 
-       public static $SCAN_PATTERN_NAMESPACEDECLARATION = '/(?<!\\\\){namespace\s*([a-zA-Z]+[a-zA-Z0-9]*)\s*=\s*((?:F3|Tx)(?:FLUID_NAMESPACE_SEPARATOR\w+)+)\s*}/m';
+       public static $SCAN_PATTERN_NAMESPACEDECLARATION = '/(?<!\\\\){namespace\s*([a-zA-Z]+[a-zA-Z0-9]*)\s*=\s*((?:F3|Tx|t3lib|tslib)(?:FLUID_NAMESPACE_SEPARATOR\w+)+)\s*}/m';
 
        /**
         * This regular expression splits the input string at all dynamic tags, AND