Project

General

Profile

Bug #21068 ยป 11970.diff

Administrator Admin, 2009-09-18 00:39

View differences:

t3lib/class.t3lib_pagerenderer.php (working copy)
* @param string $backPath relative path to typo3-folder. It varies for BE modules, in FE it will be typo3/
* @return void
*/
public function __construct($templateFile = '', $backPath = '') {
public function __construct($templateFile = '', $backPath = NULL) {
$this->reset();
if (strlen($templateFile)) {
$this->templateFile = $templateFile;
}
$this->backPath = $backPath;
$this->backPath = isset($backPath) ? $backPath : $GLOBALS['BACK_PATH'];
$this->inlineJavascriptWrap = array(
'<script type="text/javascript">' . chr(10) . '/*<![CDATA[*/' . chr(10) . '<!-- ' . chr(10),
t3lib/class.t3lib_tceforms.php (working copy)
// make textareas resizable and flexible
if (!($GLOBALS['BE_USER']->uc['resizeTextareas'] == '0' && $GLOBALS['BE_USER']->uc['resizeTextareas_Flexible'] == '0')) {
$GLOBALS['SOBE']->doc->addStyleSheet('ext.resizable', $this->backPath . '../t3lib/js/extjs/ux/resize.css');
$GLOBALS['SOBE']->doc->addStyleSheet('ext.resizable', '../t3lib/js/extjs/ux/resize.css');
$this->loadJavascriptLib('../t3lib/js/extjs/ux/ext.resizable.js');
}
$resizableSettings = array(
typo3/template.php (working copy)
* @return void
*/
function addStyleSheet($key, $href, $title='', $relation='stylesheet') {
$this->pageRenderer->addCssFile($this->backPath . $href, $relation, $title);
if (strpos($href, '://') !== FALSE || substr($href, 0, 1) === '/') {
$file = $href;
} else {
$file = $this->backPath . $href;
}
$this->pageRenderer->addCssFile($file, $relation, $title);
}
/**
* Insert post rendering document style into already rendered content
    (1-1/1)