Index: typo3/sysext/version/cm1/index.php =================================================================== --- typo3/sysext/version/cm1/index.php (revision 5438) +++ typo3/sysext/version/cm1/index.php (working copy) @@ -422,7 +422,7 @@ } if (count($tRows)>1) { - $content.=''.implode('',$tRows).'


'; + $content .= '' . implode('', $tRows) . '


'; } else { $content .= $GLOBALS['LANG']->getLL('recordsMatchesCompletely'); } @@ -514,13 +514,13 @@ $content='
- ' . $GLOBALS['LANG']->getLL('tblHeader_t3ver_label') . ':
+ ' . $GLOBALS['LANG']->getLL('tblHeader_t3ver_label') . ':
'.($this->table == 'pages' ? '' : '').' -
+
@@ -693,7 +693,7 @@ $WSoverview = $this->displayWorkspaceOverview(); // Buttons for publish / swap: - $actionLinks = '
'; + $actionLinks = '
'; if ($GLOBALS['BE_USER']->workspace!==0) { if ($this->publishAccess) { $actionLinks.= ''; @@ -708,9 +708,9 @@ $actionLinks.= ''; $actionLinks.= ''; $actionLinks.= $this->displayWorkspaceOverview_allStageCmd(); - + if ($actionLinks || count($errors)) { - $this->content.= $this->doc->section('',$actionLinks.(count($errors) ? '

' . $GLOABLS['LANG']->getLL('errors') . '


'.implode('
',$errors).'
' : ''),0,1); + $this->content .= $this->doc->section('', $actionLinks . (count($errors) ? '

' . $GLOABLS['LANG']->getLL('errors') . '


' . implode('
', $errors) . '
' : ''), 0, 1); } if (t3lib_div::_POST('_previewLink')) { @@ -723,7 +723,7 @@ $params = 'id='.$this->id.'&ADMCMD_previewWS='.$GLOBALS['BE_USER']->workspace; $previewUrl = t3lib_div::getIndpEnv('TYPO3_SITE_URL').'index.php?ADMCMD_prev='.t3lib_BEfunc::compilePreviewKeyword($params, $GLOBALS['BE_USER']->user['uid'],60*60*$ttlHours); } - $this->content.= $this->doc->section($GLOBALS['LANG']->getLL('previewUrl'), sprintf($GLOBALS['LANG']->getLL('previewInstruction'), $ttlHours) . '

'.$previewUrl.'',0,1); + $this->content .= $this->doc->section($GLOBALS['LANG']->getLL('previewUrl'), sprintf($GLOBALS['LANG']->getLL('previewInstruction'), $ttlHours) . '

' . $previewUrl . '', 0, 1); } // Output overview content: @@ -810,8 +810,8 @@ $table = ''.implode('',$tableRows).'
'; } else $table = ''; - $linkBack = t3lib_div::_GP('returnUrl') ? 'doc->backPath,'gfx/goback.gif','width="14" height="14"').' alt="" />' . $GLOBALS['LANG']->getLL('goBack') . '

' : ''; - $resetDiffOnly = $this->diffOnly ? '' . $GLOBALS['LANG']->getLL('showAllInformation') . '

' : ''; + $linkBack = t3lib_div::_GP('returnUrl') ? 'doc->backPath, 'gfx/goback.gif', 'width="14" height="14"') . ' alt="" />' . $GLOBALS['LANG']->getLL('goBack') . '

' : ''; + $resetDiffOnly = $this->diffOnly ? '' . $GLOBALS['LANG']->getLL('showAllInformation') . '

' : ''; $versionSelector = $GLOBALS['BE_USER']->workspace ? $this->doc->getVersionSelector($this->id) : ''; @@ -885,14 +885,14 @@ $diffCode = ''; list($diffHTML,$diffPct) = $this->createDiffView($table, $rec_off, $rec_on); if ($rec_on['t3ver_state']==1) { // New record: - $diffCode.= $this->doc->icons(1) . $GLOBALS['LANG']->getLL('newElement') . '
'; + $diffCode.= $this->doc->icons(1) . $GLOBALS['LANG']->getLL('newElement') . '
'; $diffCode.= $diffHTML; } elseif ($rec_off['t3ver_state']==2) { - $diffCode.= $this->doc->icons(2) . $GLOBALS['LANG']->getLL('deletedElement') . '
'; + $diffCode.= $this->doc->icons(2) . $GLOBALS['LANG']->getLL('deletedElement') . '
'; } elseif ($rec_on['t3ver_state']==3) { - $diffCode.= $this->doc->icons(1) . $GLOBALS['LANG']->getLL('moveToPlaceholder') . '
'; + $diffCode.= $this->doc->icons(1) . $GLOBALS['LANG']->getLL('moveToPlaceholder') . '
'; } elseif ($rec_off['t3ver_state']==4) { - $diffCode.= $this->doc->icons(1) . $GLOBALS['LANG']->getLL('moveToPointer') . '
'; + $diffCode.= $this->doc->icons(1) . $GLOBALS['LANG']->getLL('moveToPointer') . '
'; } else { $diffCode.= ($diffPct<0 ? $GLOBALS['LANG']->getLL('notAvailable') : ($diffPct ? $diffPct . '% ' . $GLOBALS['LANG']->getLL('change') : '')); $diffCode.= $diffHTML; @@ -926,9 +926,9 @@ // Create version element: $versionsInOtherWS = $this->versionsInOtherWS($table, $rec_on['uid']); - $versionsInOtherWSWarning = $versionsInOtherWS && $GLOBALS['BE_USER']->workspace!==0 ? '
'.$this->doc->icons(2) . $GLOBALS['LANG']->getLL('otherVersions') . $versionsInOtherWS : ''; - $multipleWarning = (!$mainCell && $GLOBALS['BE_USER']->workspace!==0? '
'.$this->doc->icons(3).'' . $GLOBALS['LANG']->getLL('multipleVersions') . '' : ''); - $verWarning = $warnAboutVersions || ($warnAboutVersions_nonPages && $GLOBALS['TCA'][$table]['ctrl']['versioning_followPages'])? '
'.$this->doc->icons(3).'' . $GLOBALS['LANG']->getLL('versionInVersion') . '' : ''; + $versionsInOtherWSWarning = $versionsInOtherWS && $GLOBALS['BE_USER']->workspace !== 0 ? '
' . $this->doc->icons(2) . $GLOBALS['LANG']->getLL('otherVersions') . $versionsInOtherWS : ''; + $multipleWarning = (!$mainCell && $GLOBALS['BE_USER']->workspace !== 0 ? '
' . $this->doc->icons(3) . '' . $GLOBALS['LANG']->getLL('multipleVersions') . '' : ''); + $verWarning = $warnAboutVersions || ($warnAboutVersions_nonPages && $GLOBALS['TCA'][$table]['ctrl']['versioning_followPages']) ? '
' . $this->doc->icons(3) . '' . $GLOBALS['LANG']->getLL('versionInVersion') . '' : ''; $verElement = $icon. (!$this->details ? '' : ''). t3lib_BEfunc::getRecordTitle($table,$rec_off,TRUE). @@ -949,7 +949,7 @@ if ($diffCode) { $verElement = $verElement.' -
' . $GLOBALS['LANG']->getLL('diffToLiveElement') . ' +
' . $GLOBALS['LANG']->getLL('diffToLiveElement') . ' @@ -1227,7 +1227,7 @@ break; } $text = t3lib_BEfunc::dateTime($dat['tstamp']).': "'.$username.'" '.$text; - $text.= ($data['comment']?'
' . $GLOBALS['LANG']->getLL('userComment') . ': '.htmlspecialchars($data['comment']).'':''); + $text.= ($data['comment'] ? '
' . $GLOBALS['LANG']->getLL('userComment') . ': ' . htmlspecialchars($data['comment']) . '' : ''); $entry[] = $text; } @@ -1248,7 +1248,7 @@ global $TCA; if (!$this->details && ($GLOBALS['BE_USER']->workspace===0 || !$this->MOD_SETTINGS['expandSubElements'])) { // In online workspace we have a reduced view because otherwise it will bloat the listing: - return '
+ return '
doc->backPath,'gfx/ol/joinbottom.gif','width="18" height="16"').' align="top" alt="" title="" />'. ($origId ? ''.
'.$diffCode.'