From 30a7c5979f5390f36527396f2fd98cce0bb3c0dc Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 1 Dec 2005 11:04:30 +0000 Subject: [PATCH] * (bug 4035) Fix prev/next revision links on edit page also removed extra prev/next header on current version with non-unicode browser --- RELEASE-NOTES | 1 + includes/EditPage.php | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 9045115c6c..78c6e7ae2b 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -270,6 +270,7 @@ fully support the editing toolbar, but was found to be too confusing. using revision ID reported via OutputPage; Skin::editUrlOptions() * Remove obsolete 'redirect=no' on some edit links * Include oldid for the second revision on edit link on diff view +* (bug 4035) Fix prev/next revision links on edit page === Caveats === diff --git a/includes/EditPage.php b/includes/EditPage.php index 6b3c033f7d..5f7b73cbbc 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -678,13 +678,12 @@ class EditPage { } $wgOut->setPageTitle( $s ); if ( !$this->checkUnicodeCompliantBrowser() ) { - $this->mArticle->setOldSubtitle(); $wgOut->addWikiText( wfMsg( 'nonunicodebrowser') ); } if ( isset( $this->mArticle ) && isset( $this->mArticle->mRevision ) && !$this->mArticle->mRevision->isCurrent() ) { - $this->mArticle->setOldSubtitle(); + $this->mArticle->setOldSubtitle( $this->mArticle->mRevision->getId() ); $wgOut->addWikiText( wfMsg( 'editingold' ) ); } } -- 2.20.1