r69277 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69276‎ | r69277 | r69278 >
Date:22:51, 11 July 2010
Author:aaron
Status:deferred
Tags:
Comment:
(bug 24341) ignore auto-summaries in FRUserCounters
Modified paths:
  • /trunk/extensions/FlaggedRevs/FRUserCounters.php (modified) (history)
  • /trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/FRUserCounters.php
@@ -100,7 +100,7 @@
101101 $p['totalContentEdits'] += 1;
102102 $changed = true;
103103 }
104 - if ( $summary != '' ) {
 104+ if ( !preg_match( '/^\/\*.*\*\/$/', $summary ) ) {
105105 $p['editComments'] += 1;
106106 $changed = true;
107107 }
Index: trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc
@@ -28,7 +28,7 @@
2929 # Get edit comments used
3030 $sres = $db->select( 'revision', '1',
3131 array( 'rev_user' => $user->getID(),
32 - 'rev_comment != ""' ),
 32+ "rev_comment NOT LIKE '/*%*/'" ), // manual comments only
3333 __METHOD__,
3434 array( 'LIMIT' => max($wgFlaggedRevsAutopromote['editComments'],500) )
3535 );

Status & tagging log