r35122 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35121‎ | r35122 | r35123 >
Date:00:59, 21 May 2008
Author:aaron
Status:old
Tags:
Comment:
Remove copy-paste cruft
Modified paths:
  • /trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc (modified) (history)
  • /trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.php
@@ -4,9 +4,7 @@
55 require dirname(__FILE__) . '/../../../maintenance/commandLine.inc';
66 require dirname(__FILE__) . '/updateAutoPromote.inc';
77
8 -error_reporting( E_ALL & (~E_NOTICE) );
 8+error_reporting( E_ALL );
99
10 -$db = wfGetDB( DB_SLAVE );
 10+update_autopromote();
1111
12 -update_autopromote( $db );
13 -
Index: trunk/extensions/FlaggedRevs/maintenance/updateAutoPromote.inc
@@ -2,8 +2,10 @@
33
44 define( 'BATCH_SIZE', 25 );
55
6 -function update_autopromote( $db ) {
 6+function update_autopromote() {
 7+ global $wgContentNamespaces, $wgFlaggedRevsAutopromote;
78 echo "Populating and updating autopromote table\n";
 9+ $db = wfGetDB( DB_SLAVE );
810 $start = $db->selectField( 'user', 'MIN(user_id)', false, __FUNCTION__ );
911 $end = $db->selectField( 'user', 'MAX(user_id)', false, __FUNCTION__ );
1012 if( is_null( $start ) || is_null( $end ) ){

Status & tagging log