Project

General

Profile

Feature #17850 ยป 20071126_additionalInlineJS.diff

Administrator Admin, 2007-11-26 09:53

View differences:

typo3/sysext/cms/tslib/class.tslib_pagegen.php (working copy)
}
';
}
//add additional inline JS
// defined in TS with page.additionalInlineJS
if (is_array($GLOBALS['TSFE']->pSetup['additionalInlineJS.'])) {
$GLOBALS['TSFE']->additionalInlineJS[]= $GLOBALS['TSFE']->cObj->cObjGet($GLOBALS['TSFE']->pSetup['additionalInlineJS.'],'additionalInlineJS.');
}
// defined in php
if(is_array($GLOBALS['TSFE']->additionalInlineJS)) {
foreach($GLOBALS['TSFE']->additionalInlineJS as $key=>$val) {
if(!is_array($val)) {
$_scriptCode .= chr(10).$val.chr(10);
}
}
}
// Should minify?
if ($GLOBALS['TSFE']->config['config']['minifyJS']) {
$minifyError = '';
    (1-1/1)