Fixed bug #12611: Add preRenderHook in pageRenderer
authorSteffen Kamper <info@sk-typo3.de>
Tue, 17 Nov 2009 18:25:26 +0000 (18:25 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 17 Nov 2009 18:25:26 +0000 (18:25 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@6457 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_pagerenderer.php

index 56763a9..d10405a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,7 @@
 
 2009-11-17  Steffen Kamper  <info@sk-typo3.de>
 
+       * Fixed bug #12611: Add preRenderHook in pageRenderer
        * Fixed bug #12610: Inconsistent naming of "includeFooterJS"
        * Fixed bug #10119: Broken fe_adminLib.inc
        * Fixed bug #12616: Set recycler height dynamic
index 90aa3cb..b8ed24d 100644 (file)
@@ -943,6 +943,24 @@ class t3lib_PageRenderer implements t3lib_Singleton {
 
                $jsLibs = $this->renderJsLibraries();
 
+               // preRenderHook for possible manuipulation
+               if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'])) {
+                       $params = array (
+                               'jsLibsCore'     => &$jsLibs,
+                               'jsLibs'         => &$this->jsLibs,
+                               'jsFiles'        => &$this->jsFiles,
+                               'jsFooterFiles'  => &$this->jsFiles,
+                               'cssFiles'       => &$this->cssFiles,
+                               'headerData'     => &$this->headerData,
+                               'footerData'     => &$this->footerData,
+                               'jsInline'       => &$this->jsInline,
+                               'cssInline'      => &$this->cssInline,
+                       );
+                       foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-preProcess'] as $hook) {
+                               t3lib_div::callUserFunction($hook, $params, $this);
+                       }
+               }
+
                if ($this->compressCss || $this->compressJavascript) {
                                // do the file compression
                        $this->doCompress();