Added feature #14065: Add hook for including Static TypoScript after all Static Templ...
authorJeff Segars <jsegars@alumni.rice.edu>
Mon, 12 Apr 2010 21:36:29 +0000 (21:36 +0000)
committerJeff Segars <jsegars@alumni.rice.edu>
Mon, 12 Apr 2010 21:36:29 +0000 (21:36 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@7313 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_tstemplate.php

index 3bf2f27..a4dcf73 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-04-12  Jeff Segars  <jeff@webempoweredchurch.org>
+
+       * Added feature #14065: Add hook for including Static TypoScript after all Static Templates are included
+
 2010-04-12  Stanislas Rolland  <typo3@sjbr.ca>
 
        * Added feature #13116: htmlArea RTE: Allow to hide counting classes
index 37147bb..26ffae3 100644 (file)
@@ -704,6 +704,19 @@ class t3lib_TStemplate     {
                }
 
                $this->addExtensionStatics($idList,$templateID,$pid,$row);
+
+                       // Include Static Template Records after all other TypoScript has been included.
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSourcesAtEnd'])) {
+                       $_params = array(
+                                       'idList' => &$idList,
+                                       'templateId' => &$templateID,
+                                       'pid' => &$pid,
+                                       'row' => &$row
+                       );
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSourcesAtEnd'] as $_funcRef)     {
+                               t3lib_div::callUserFunction($_funcRef, $_params, $this);
+                       }
+               }
        }
 
        /**