r63610 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r63609‎ | r63610 | r63611 >
Date:19:01, 11 March 2010
Author:aaron
Status:ok
Tags:
Comment:
Follow-up r63609: rm levelAvailable call
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.class.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.class.php
@@ -541,11 +541,8 @@
542542 foreach ( FlaggedRevs::getDimensions() as $qal => $levels ) {
543543 $level = isset( $flags[$qal] ) ? $flags[$qal] : 0;
544544 $highest = count( $levels ) - 1; // highest valid level
545 - # Levels may not apply for some pages
546 - if ( $level > 0 && !RevisionReview::levelAvailable( $qal, $level, $config ) ) {
547 - return false;
548545 # Sanity check numeric range
549 - } elseif ( $level < 0 || $level > $highest ) {
 546+ if ( $level < 0 || $level > $highest ) {
550547 return false;
551548 }
552549 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r63609Pull back recent $wgFlagAvailability var, likely not be needed (and complicat...aaron18:14, 11 March 2010

Status & tagging log