From 6aff9e21f4d56af1538640705d288e23984781bb Mon Sep 17 00:00:00 2001 From: Leo Koppelkamm Date: Mon, 11 Jul 2011 10:54:05 +0000 Subject: [PATCH] wgAction incorrectly asumes 'view' instead of 'historysubmit' on diff-pages without a &action parameter. Bug 25800 --- includes/Article.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/Article.php b/includes/Article.php index d7c8a54a8f..56c3e78790 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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__ ); -- 2.20.1