r50621 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r50620‎ | r50621 | r50622 >
Date:09:37, 15 May 2009
Author:ialex
Status:ok
Tags:
Comment:
Tweak for r50609: use $wgDatabase rather than wfGetDB( DB_MASTER )
Modified paths:
  • /trunk/phase3/maintenance/updaters.inc (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/updaters.inc
@@ -1307,6 +1307,7 @@
13081308 }
13091309
13101310 function do_log_search_population() {
 1311+ global $wgDatabase;
13111312 if( update_row_exists( 'populate log_search' ) ) {
13121313 wfOut( "...log_search table already populated.\n" );
13131314 return;
@@ -1316,8 +1317,7 @@
13171318 "Populating log_search table, printing progress markers. For large\n" .
13181319 "databases, you may want to hit Ctrl-C and do this manually with\n" .
13191320 "maintenance/populateLogSearch.php.\n" );
1320 - $db =& wfGetDB( DB_MASTER );
1321 - migrate_log_params( $db );
 1321+ migrate_log_params( $wgDatabase );
13221322 wfOut( "Done populating log_search table.\n" );
13231323 }
13241324

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r50609Populate log_search during update.php run and store an update status row when...brion23:06, 14 May 2009

Status & tagging log