Index: trunk/extensions/CentralNotice/CentralNotice.php |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | |
147 | 147 | $centralLoader = SpecialPage::getTitleFor( 'BannerController' )->getLocalUrl(); |
148 | 148 | |
149 | | - $dbr = wfGetDB( DB_SLAVE ); |
| 149 | + $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname ); |
150 | 150 | $row = $dbr->selectRow( 'cn_notices', 'not_name', array( 'not_enabled = 1', 'not_geo = 1' ) ); |
151 | 151 | if ( $row ) { |
152 | 152 | // Insert the geo IP lookup into the <head> |