From: Alexandre Emsenhuber Date: Fri, 15 May 2009 09:37:11 +0000 (+0000) Subject: Tweak for r50609: use $wgDatabase rather than wfGetDB( DB_MASTER ) X-Git-Tag: 1.31.0-rc.0~41795 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=9b21617d7b9f74eae8018cbb0ac42b8301d53fb7;p=lhc%2Fweb%2Fwiklou.git Tweak for r50609: use $wgDatabase rather than wfGetDB( DB_MASTER ) --- diff --git a/maintenance/updaters.inc b/maintenance/updaters.inc index 20b19f3e3d..1507936a43 100644 --- a/maintenance/updaters.inc +++ b/maintenance/updaters.inc @@ -1307,6 +1307,7 @@ function do_unique_pl_tl_il() { } function do_log_search_population() { + global $wgDatabase; if( update_row_exists( 'populate log_search' ) ) { wfOut( "...log_search table already populated.\n" ); return; @@ -1316,8 +1317,7 @@ function do_log_search_population() { "Populating log_search table, printing progress markers. For large\n" . "databases, you may want to hit Ctrl-C and do this manually with\n" . "maintenance/populateLogSearch.php.\n" ); - $db =& wfGetDB( DB_MASTER ); - migrate_log_params( $db ); + migrate_log_params( $wgDatabase ); wfOut( "Done populating log_search table.\n" ); }