r73994 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r73993‎ | r73994 | r73995 >
Date:22:43, 29 September 2010
Author:kaldari
Status:ok
Tags:
Comment:
fix for db error
Modified paths:
  • /trunk/extensions/CentralNotice/CentralNotice.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralNotice/CentralNotice.php
@@ -145,7 +145,7 @@
146146
147147 $centralLoader = SpecialPage::getTitleFor( 'BannerController' )->getLocalUrl();
148148
149 - $dbr = wfGetDB( DB_SLAVE );
 149+ $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname );
150150 $row = $dbr->selectRow( 'cn_notices', 'not_name', array( 'not_enabled = 1', 'not_geo = 1' ) );
151151 if ( $row ) {
152152 // Insert the geo IP lookup into the <head>

Follow-up revisions

RevisionCommit summaryAuthorDate
r73999Picking up r73994-73995tomasz22:49, 29 September 2010

Status & tagging log