From: Leo Koppelkamm Date: Mon, 11 Jul 2011 10:54:05 +0000 (+0000) Subject: wgAction incorrectly asumes 'view' instead of 'historysubmit' on diff-pages without... X-Git-Tag: 1.31.0-rc.0~28938 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=6aff9e21f4d56af1538640705d288e23984781bb;p=lhc%2Fweb%2Fwiklou.git wgAction incorrectly asumes 'view' instead of 'historysubmit' on diff-pages without a &action parameter. Bug 25800 --- 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__ );