r73999 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73998‎ | r73999 | r74000 >
Date:22:49, 29 September 2010
Author:tomasz
Status:deferred
Tags:
Comment:
Picking up r73994-73995
Modified paths:
  • /branches/wmf/1.16wmf4/extensions/CentralNotice (modified) (history)
  • /branches/wmf/1.16wmf4/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.16wmf4/extensions/CentralNotice/CentralNotice.php
@@ -140,11 +140,11 @@
141141 }
142142
143143 function efCentralNoticeLoader( $out, $skin ) {
144 - global $wgUser, $wgOut;
 144+ global $wgUser, $wgOut, $wgCentralDBname;
145145
146146 $centralLoader = SpecialPage::getTitleFor( 'BannerController' )->getLocalUrl();
147147
148 - $dbr = wfGetDB( DB_SLAVE );
 148+ $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname );
149149 $row = $dbr->selectRow( 'cn_notices', 'not_name', array( 'not_enabled = 1', 'not_geo = 1' ) );
150150 if ( $row ) {
151151 $wgOut->addScriptFile( 'http://geoiplookup.wikimedia.org/' );
Property changes on: branches/wmf/1.16wmf4/extensions/CentralNotice
___________________________________________________________________
Modified: svn:mergeinfo
152152 Merged /trunk/extensions/CentralNotice:r73994-73995

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r73994fix for db errorkaldari22:43, 29 September 2010

Status & tagging log