Index: class.tslib_fe.php =================================================================== --- class.tslib_fe.php (revision 64) +++ class.tslib_fe.php (working copy) @@ -3862,7 +3862,7 @@ * @return void */ function previewInfo() { - + if ($this->fePreview && (!isset($this->config['config']['disablePreviewNotification']) || intval($this->config['config']['disablePreviewNotification']) !== 1)) { if ($this->fePreview === 2) { @@ -3870,7 +3870,7 @@ 'pages_language_overlay', 'pid='.$this->id.' AND hidden=0 AND deleted=0') OR die(mysql_error()); -$langselect = 'Deutsch '; +$langselect = 'Deutsch '; if ($res) { while( $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res) ) { @@ -3878,20 +3878,106 @@ 'sys_language', 'uid='.$row['sys_language_uid']); $language = $GLOBALS['TYPO3_DB']->sql_fetch_row($res2); - $langselect .= ''.$language[0].' '; + $langselect .= ''.$language[0].' '; } } $onclickForStoppingPreview = 'document.location="'.t3lib_div::getIndpEnv('TYPO3_SITE_URL').'index.php?ADMCMD_prev=LOGOUT&returnUrl='.rawurlencode(t3lib_div::getIndpEnv('REQUEST_URI')).'";return false;'; $text = 'Preview of workspace "'.$this->whichWorkspace(TRUE).'" ('.$this->whichWorkspace().')'; - $html = $this->doWorkspacePreview() ? '
'.$langselect.'' : ''; + $html = $this->doWorkspacePreview() ? '
'.$langselect.'' : ''; } else { $text = 'PREVIEW!'; $html = ''; } - $stdMsg = '
'.htmlspecialchars($text).$html.'
'; + $stdMsg = '
'.htmlspecialchars($text).'
'.$html.'
' + .""; + if ($this->fePreview === 2) { $temp_content = $this->config['config']['message_preview_workspace'] ? @sprintf($this->config['config']['message_preview_workspace'], $this->whichWorkspace(TRUE),$this->whichWorkspace()) : @@ -3899,7 +3985,7 @@ } else { $temp_content = $this->config['config']['message_preview'] ? $this->config['config']['message_preview'] : $stdMsg; } - echo $temp_content; + $this->content .= $temp_content; } }