Index: trunk/extensions/FeaturedFeeds/FeaturedFeedsWMF.php |
— | — | @@ -14,8 +14,8 @@ |
15 | 15 | * @return bool |
16 | 16 | */ |
17 | 17 | function wfFeaturedFeedsWMF_getFeeds( &$feeds ) { |
18 | | - global $wgConf, $wgDBname; |
19 | | - list( $site, $lang ) = $wgConf->siteFromDB( $wgDBname ); |
| 18 | + global $wgConf; |
| 19 | + list( $site, $lang ) = $wgConf->siteFromDB( wfGetDB( DB_SLAVE )->getDBname() ); |
20 | 20 | $media = array( |
21 | 21 | 'potd' => array( // Picture Of The Day |
22 | 22 | 'page' => 'ffeed-potd-page', |