wgAction incorrectly asumes 'view' instead of 'historysubmit' on diff-pages without...
authorLeo Koppelkamm <diebuche@users.mediawiki.org>
Mon, 11 Jul 2011 10:54:05 +0000 (10:54 +0000)
committerLeo Koppelkamm <diebuche@users.mediawiki.org>
Mon, 11 Jul 2011 10:54:05 +0000 (10:54 +0000)
includes/Article.php

index d7c8a54..56c3e78 100644 (file)
@@ -371,6 +371,8 @@ class Article extends Page {
                # If we got diff in the query, we want to see a diff page instead of the article.
                if ( $wgRequest->getCheck( 'diff' ) ) {
                        wfDebug( __METHOD__ . ": showing diff page\n" );
+                       # Manually setting action=diff. Bug 25800
+                       $wgRequest->setVal( 'action', 'diff' );
                        $this->showDiffPage();
                        wfProfileOut( __METHOD__ );