r46472 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46471‎ | r46472 | r46473 >
Date:19:50, 28 January 2009
Author:aaron
Status:ok
Tags:
Comment:
(bug 17208) Fix regression if 'totalContentEdits' not set
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php
@@ -865,6 +865,10 @@
866866 # Check if user edited enough content pages
867867 $totalCheckedEditsNeeded = false;
868868 if( $wgFlaggedRevsAutopromote['totalContentEdits'] > $p['totalContentEdits'] ) {
 869+ if( !$wgFlaggedRevsAutopromote['totalCheckedEdits'] ) {
 870+ wfProfileOut( __METHOD__ );
 871+ return true;
 872+ }
869873 $totalCheckedEditsNeeded = true;
870874 }
871875 # Check if user edited enough unique pages

Status & tagging log