http://www.mediawiki.org/wiki/Special:Code/MediaWiki/73994

Revision: 73994
Author:   kaldari
Date:     2010-09-29 22:43:00 +0000 (Wed, 29 Sep 2010)

Log Message:
-----------
fix for db error

Modified Paths:
--------------
    trunk/extensions/CentralNotice/CentralNotice.php

Modified: trunk/extensions/CentralNotice/CentralNotice.php
===================================================================
--- trunk/extensions/CentralNotice/CentralNotice.php    2010-09-29 22:18:50 UTC 
(rev 73993)
+++ trunk/extensions/CentralNotice/CentralNotice.php    2010-09-29 22:43:00 UTC 
(rev 73994)
@@ -145,7 +145,7 @@
 
        $centralLoader = SpecialPage::getTitleFor( 'BannerController' 
)->getLocalUrl();
 
-       $dbr = wfGetDB( DB_SLAVE );
+       $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname );
        $row = $dbr->selectRow( 'cn_notices', 'not_name', array( 'not_enabled = 
1', 'not_geo = 1' ) );
        if ( $row ) {
                // Insert the geo IP lookup into the <head>



_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to