0011805_v3.patch

Administrator Admin, 2010-02-27 19:04

Download (1.95 KB)

View differences:

t3lib/jsfunc.inline.js (Arbeitskopie)
129 129
	makeAjaxCall: function(method, params, lock) {
130 130
		var max, url='', urlParams='', options={};
131 131
		if (method && params && params.length && this.lockAjaxMethod(method, lock)) {
132
			url = 'ajax.php';
132
			url = TBE_EDITOR.getBackendPath() + 'ajax.php';
133 133
			urlParams = '&ajaxID=t3lib_TCEforms_inline::'+method;
134 134
			for (var i=0, max=params.length; i<max; i++) {
135 135
				urlParams += '&ajax['+i+']='+params[i];
t3lib/class.t3lib_tceforms_fe.php (Arbeitskopie)
166 166
	public function initializeTemplateContainer() {
167 167
		t3lib_div::requireOnce(PATH_typo3 . 'template.php');
168 168
		$GLOBALS['TBE_TEMPLATE'] = t3lib_div::makeInstance('frontendDoc');
169
		$GLOBALS['TBE_TEMPLATE']->getPageRenderer()->addInlineSetting(
170
			'', 'PATH_typo3', t3lib_div::dirname(t3lib_div::getIndpEnv('SCRIPT_NAME')) . '/' . TYPO3_mainDir
171
		);
169 172

  
170 173
		$GLOBALS['SOBE'] = new stdClass();
171 174
		$GLOBALS['SOBE']->doc = $GLOBALS['TBE_TEMPLATE'];
typo3/jsfunc.tbe_editor.js (Arbeitskopie)
551 551
			}
552 552
		}
553 553
		return false;
554
	}	
554
	},
555

  
556
	/**
557
	 * Determines backend path to be used for e.g. ajax.php
558
	 * @return string
559
	 */
560
	getBackendPath: function() {
561
		var backendPath = '';
562
		if (TYPO3) {
563
			if (TYPO3.configuration && TYPO3.configuration.PATH_typo3) {
564
				backendPath = TYPO3.configuration.PATH_typo3;
565
			} else if (TYPO3.settings && TYPO3.settings.PATH_typo3) {
566
				backendPath = TYPO3.settings.PATH_typo3;
567
			}
568
		}
569
		return backendPath;
570
	}
555 571
};
556 572

  
557 573
function typoSetup	() {