From 9b21617d7b9f74eae8018cbb0ac42b8301d53fb7 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Fri, 15 May 2009 09:37:11 +0000 Subject: [PATCH] Tweak for r50609: use $wgDatabase rather than wfGetDB( DB_MASTER ) --- maintenance/updaters.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" ); } -- 2.20.1