r30811 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r30810‎ | r30811 | r30812 >
Date:21:20, 10 February 2008
Author:aaron
Status:old
Tags:
Comment:
Move this block down
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedArticle.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedArticle.php
@@ -89,10 +89,6 @@
9090 $skin = $wgUser->getSkin();
9191
9292 $action = $wgRequest->getVal( 'action', 'view' );
93 - # Do not clutter up diffs any further...
94 - if( $wgRequest->getVal('diff') || $wgRequest->getVal('oldid') ) {
95 - return true;
96 - }
9793 # For unreviewable pages, allow for basic patrolling
9894 if( !FlaggedRevs::isPageReviewable( $article->getTitle() ) ) {
9995 # If we have been passed an &rcid= parameter, we want to give the user a
@@ -110,6 +106,10 @@
111107 }
112108 return true;
113109 }
 110+ # Do not clutter up diffs any further...
 111+ if( $wgRequest->getVal('diff') || $wgRequest->getVal('oldid') ) {
 112+ return true;
 113+ }
114114 # Only trigger on article view for content pages, not for protect/delete/hist
115115 if( ($action !='view' && $action !='purge') || !$article || !$article->exists() )
116116 return true;

Status & tagging log