r109439 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r109438‎ | r109439 | r109440 >
Date:21:36, 18 January 2012
Author:maxsem
Status:ok
Tags:
Comment:
One global less
Modified paths:
  • /trunk/extensions/FeaturedFeeds/FeaturedFeedsWMF.php (modified) (history)

Diff [purge]

Index: trunk/extensions/FeaturedFeeds/FeaturedFeedsWMF.php
@@ -14,8 +14,8 @@
1515 * @return bool
1616 */
1717 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() );
2020 $media = array(
2121 'potd' => array( // Picture Of The Day
2222 'page' => 'ffeed-potd-page',

Status & tagging log