Index: trunk/phase3/maintenance/updaters.inc |
— | — | @@ -33,8 +33,8 @@ |
34 | 34 | # Obviously, only use this for updates that occur after the updatelog table was |
35 | 35 | # created! |
36 | 36 | function update_row_exists( $key ) { |
37 | | - $dbr = wfGetDB( DB_SLAVE ); |
38 | | - $row = $dbr->selectRow( |
| 37 | + global $wgDatabase; |
| 38 | + $row = $wgDatabase->selectRow( |
39 | 39 | 'updatelog', |
40 | 40 | '1', |
41 | 41 | array( 'ul_key' => $key ), |