r32307 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r32306‎ | r32307 | r32308 >
Date:22:58, 21 March 2008
Author:aaron
Status:old
Tags:
Comment:
Don't show diff for talk pages
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -1006,7 +1006,9 @@
10071007 */
10081008 public function injectReviewDiffURLParams( $article, &$sectionanchor, &$extraq ) {
10091009 global $wgUser, $wgReviewChangesAfterEdit;
1010 -
 1010+ # Don't show this for the talk page
 1011+ if( !$this->isReviewable() || $article->getTitle()->isTalkPage() )
 1012+ return true;
10111013 $frev = $this->getStableRev();
10121014 # Was this already autoreviewed, are we allowed?
10131015 if( $wgReviewChangesAfterEdit && !$this->skipReviewDiff && $frev && $wgUser->isAllowed('review') ) {

Status & tagging log