From fd3c4bd537f3495f1b4f7bda548779e10e07abec Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Sun, 10 Dec 2006 01:11:27 +0000 Subject: [PATCH] * Removed a redundant tag from diff pages that was causing display issues for some users (patch based on one by Patrick Collison/adxp) --- RELEASE-NOTES | 1 + includes/DifferenceEngine.php | 16 ++++++++-------- 2 files changed, 9 insertions(+), 8 deletions(-) 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' ) ) . ")"; } -- 2.20.1