Bug #77467 » previewInfot_typo3_6.2.txt

Danilo Caccialanza, 2016-08-10 14:00

 
1
//TYPO3 6.2
2
//typo3/sysext/frontend/Classes/Controller/TypoScriptFrontend/Controller.php
3
	public function previewInfo() {
4
		if ($this->fePreview !== 0) {
5
			$previewInfo = '';
6
			if (isset($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo']) && is_array($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo'])) {
7
				$_params = array('pObj' => &$this);
8
				foreach ($this->TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['hook_previewInfo'] as $_funcRef) {
9
					$previewInfo .= GeneralUtility::callUserFunction($_funcRef, $_params, $this);
10
				}
11
			}
12
			$this->content = str_ireplace('</body>', $previewInfo . '</body>', $this->content);
13
		}
14
	}
(3-3/3)