Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -1307,6 +1307,7 @@ |
1308 | 1308 | } |
1309 | 1309 | |
1310 | 1310 | function do_log_search_population() { |
| 1311 | + global $wgDatabase; |
1311 | 1312 | if( update_row_exists( 'populate log_search' ) ) { |
1312 | 1313 | wfOut( "...log_search table already populated.\n" ); |
1313 | 1314 | return; |
— | — | @@ -1316,8 +1317,7 @@ |
1317 | 1318 | "Populating log_search table, printing progress markers. For large\n" . |
1318 | 1319 | "databases, you may want to hit Ctrl-C and do this manually with\n" . |
1319 | 1320 | "maintenance/populateLogSearch.php.\n" ); |
1320 | | - $db =& wfGetDB( DB_MASTER ); |
1321 | | - migrate_log_params( $db ); |
| 1321 | + migrate_log_params( $wgDatabase ); |
1322 | 1322 | wfOut( "Done populating log_search table.\n" ); |
1323 | 1323 | } |
1324 | 1324 | |