r26472 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r26471‎ | r26472 | r26473 >
Date:03:26, 7 October 2007
Author:aaron
Status:old
Tags:
Comment:
*Fix bug over null edits
Modified paths:
  • /trunk/extensions/FlaggedRevs/FlaggedRevs.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FlaggedRevs.php
@@ -1239,6 +1239,9 @@
12401240 public function autoMarkPatrolled( $article, $user, $text, $c, $m, $a, $b, $flags, $rev ) {
12411241 global $wgUser, $wgFlaggedRevs;
12421242
 1243+ if( !$rev )
 1244+ return true;
 1245+
12431246 if( !$wgFlaggedRevs->isReviewable( $article->getTitle() ) && $wgUser->isAllowed('patrolother') ) {
12441247 $dbw = wfGetDB( DB_MASTER );
12451248 $dbw->update( 'recentchanges',

Status & tagging log