From: Aryeh Gregor Date: Sun, 10 Dec 2006 01:11:27 +0000 (+0000) Subject: * Removed a redundant tag from diff pages that was causing display issues... X-Git-Tag: 1.31.0-rc.0~54947 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=fd3c4bd537f3495f1b4f7bda548779e10e07abec;p=lhc%2Fweb%2Fwiklou.git * Removed a redundant tag from diff pages that was causing display issues for some users (patch based on one by Patrick Collison/adxp) --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index de5f347e50..7fdfc9299f 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -260,6 +260,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * DB schema change: added two columns (rc_old_len and rc_new_len) to the recentchanges table to store the text lengths before and after the edit * (bug 1085) Made Special:Recentchanges show the character difference between the changed revisions +* Removed a redundant tag from diff pages that was causing display issues for some users diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index adc8f08e74..c423ebcb83 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -171,10 +171,10 @@ CONTROL; wfMsg( 'minoreditletter') ) . ' '; } - if ($this->mNewRev->mMinorEdit == 1) { - $newminor = wfElement( 'span', array( 'class' => 'minor' ), - wfMsg( 'minoreditletter') ) . ' '; - } + if ($this->mNewRev->mMinorEdit == 1) { + $newminor = wfElement( 'span', array( 'class' => 'minor' ), + wfMsg( 'minoreditletter') ) . ' '; + } $oldHeader = "{$this->mOldtitle}
" . $sk->revUserTools( $this->mOldRev ) . "
" . @@ -523,8 +523,8 @@ CONTROL; $newLink = $this->mNewPage->escapeLocalUrl(); $this->mPagetitle = htmlspecialchars( wfMsg( 'currentrev' ) ); $newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit' ); - - $this->mNewtitle = "{$this->mPagetitle} ($timestamp)" + + $this->mNewtitle = "{$this->mPagetitle} ($timestamp)" . " (" . htmlspecialchars( wfMsg( 'editold' ) ) . ")"; } else { @@ -532,8 +532,8 @@ CONTROL; $newEdit = $this->mNewPage->escapeLocalUrl( 'action=edit&oldid=' . $this->mNewid ); $newUndo = $this->mNewPage->escapeLocalUrl( 'action=edit&undo=' . $this->mNewid ); $this->mPagetitle = htmlspecialchars( wfMsg( 'revisionasof', $timestamp ) ); - - $this->mNewtitle = "{$this->mPagetitle}" + + $this->mNewtitle = "{$this->mPagetitle}" . " (" . htmlspecialchars( wfMsg( 'editold' ) ) . ")" . " (" . htmlspecialchars( wfMsg( 'editundo' ) ) . ")"; }