Skip to content
Snippets Groups Projects
Commit 9b0db56b authored by Nils Seinschedt's avatar Nils Seinschedt Committed by Steffen Ritter
Browse files

[FEATURE] Add hook to pagerenderer after compress/concatenate

Implement a hook to be able to influence the concatenated
and compressed resource files before they get wrapped in tags.

Resolves: #33234
Releases: 4.6, 4.7

Change-Id: I0f1a1337ab5b3fbe50692c7f342ecaccc282d052
Reviewed-on: http://review.typo3.org/7822
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
parent 75bd0c75
No related merge requests found
......@@ -1510,7 +1510,24 @@ class t3lib_PageRenderer implements t3lib_Singleton {
// do the file compression
$this->doCompress();
}
// postTransform for possible manuipulation of concatenated and compressed files
if(is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postTransform'])) {
$params = array(
'jsLibs' => &$this->jsLibs,
'jsFooterLibs' => &$this->jsFooterLibs,
'jsFiles' => &$this->jsFiles,
'jsFooterFiles' => &$this->jsFooterFiles,
'cssFiles' => &$this->cssFiles,
'headerData' => &$this->headerData,
'footerData' => &$this->footerData,
'jsInline' => &$this->jsInline,
'jsFooterInline' => &$this->jsFooterInline,
'cssInline' => &$this->cssInline,
);
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_pagerenderer.php']['render-postTransform'] as $hook) {
t3lib_div::callUserFunction($hook, $params, $this);
}
}
$metaTags = implode(LF, $this->metaTags);
// remove ending slashes from static header block
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment