* (bug 4035) Fix prev/next revision links on edit page
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Dec 2005 11:04:30 +0000 (11:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 1 Dec 2005 11:04:30 +0000 (11:04 +0000)
also removed extra prev/next header on current version with non-unicode browser

RELEASE-NOTES
includes/EditPage.php

index 9045115..78c6e7a 100644 (file)
@@ -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 ===
index 6b3c033..5f7b73c 100644 (file)
@@ -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' ) );
                        }
                }