Project

General

Profile

Bug #21088 ยป 11994.diff

Administrator Admin, 2009-09-18 11:57

View differences:

t3lib/class.t3lib_pagerenderer.php (working copy)
$this->jsFiles[$this->backPath . 'contrib/extjs/ext-all.js'], $this->jsFiles[$this->backPath . 'contrib/extjs/ext-all-debug.js']
);
}
$inlineSettings = $this->inlineLanguageLabels ? 'TYPO3.lang = ' . json_encode($this->inlineLanguageLabels) . ';' : '';
$inlineSettings .= $this->inlineSettings ? 'TYPO3.settings = ' . json_encode($this->inlineSettings) . ';' : '';
if ($this->addExtCore || $this->addExtJS) {
// set clear.gif, move it on top, add handler code
$code = '';
......
$out .= $this->inlineJavascriptWrap[0] . '
Ext.ns("TYPO3");
Ext.BLANK_IMAGE_URL = "' . htmlspecialchars(t3lib_div::locationHeaderUrl($this->backPath . 'gfx/clear.gif')) . '";' . chr(10) .
'TYPO3.lang = ' . json_encode($this->inlineLanguageLabels) . ';' . 'TYPO3.settings = ' . json_encode($this->inlineSettings) . ';' .
$inlineSettings .
'Ext.onReady(function() {' .
($this->enableExtJSQuickTips ? 'Ext.QuickTips.init();' . chr(10) : '') . $code .
' });' . $this->inlineJavascriptWrap[1];
......
$this->addCssFile($this->backPath . 'contrib/extjs/resources/css/ext-all-notheme.css', 'stylesheet', 'screen', '', FALSE, TRUE);
}
}
} else {
if ($inlineSettings) {
$out .= $this->inlineJavascriptWrap[0] . $inlineSettings . $this->inlineJavascriptWrap[1];
}
}
return $out;
......
// use extern compress routine
$params = array (
'jsInline' => &$this->jsInline,
'jsFooterInline' => &$this->jsFooterInline
'jsFooterInline' => &$this->jsFooterInline,
'jsLibs' => &$this->jsLibs,
'jsFiles' => &$this->jsFiles,
'jsFooterFiles' => &$this->jsFiles,
);
t3lib_div::callUserFunction($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['jsCompressHandler'], $params, $this);
} else {
......
if ($this->compressCss && $GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['cssCompressHandler']) {
// use extern compress routine
$params = array (
'cssInline' => &$this->cssInline
'cssInline' => &$this->cssInline,
'cssFiles' => &$this->cssFiles,
);
t3lib_div::callUserFunction($GLOBALS['TYPO3_CONF_VARS'][TYPO3_MODE]['cssCompressHandler'], $params, $this);
} else {
    (1-1/1)