Mwalker has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/53281


Change subject: CN DB global should have been wgCentralDBname
......................................................................

CN DB global should have been wgCentralDBname

Reedy's patch causes some issues if the global isn't corrently named :)

Change-Id: I9dba4d1fd1c424580bf473c90a9358c707f8191c
---
M CentralNoticePager.php
M special/SpecialCentralNotice.php
M special/SpecialNoticeTemplate.php
3 files changed, 3 insertions(+), 3 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/81/53281/1

diff --git a/CentralNoticePager.php b/CentralNoticePager.php
index e1ea7cc..c7b1e04 100644
--- a/CentralNoticePager.php
+++ b/CentralNoticePager.php
@@ -13,7 +13,7 @@
         * Pull banners from the database
         */
        function getQueryInfo() {
-               global $wgCentralDBnames;
+               global $wgCentralDBname;
                $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname );
 
                // First we must construct the filter before we pull banners
diff --git a/special/SpecialCentralNotice.php b/special/SpecialCentralNotice.php
index d4a7651..c546fa6 100644
--- a/special/SpecialCentralNotice.php
+++ b/special/SpecialCentralNotice.php
@@ -1046,7 +1046,7 @@
         * Create form for managing banners assigned to a campaign
         */
        function assignedTemplatesForm( $notice ) {
-               global $wgLanguageCode, $wgNoticeNumberOfBuckets, 
$wgCentralDBnames;
+               global $wgLanguageCode, $wgNoticeNumberOfBuckets, 
$wgCentralDBname;
 
                $dbr = wfGetDB( DB_SLAVE, array(), $wgCentralDBname );
                $res = $dbr->select(
diff --git a/special/SpecialNoticeTemplate.php 
b/special/SpecialNoticeTemplate.php
index 2a67df4..a393eb1 100644
--- a/special/SpecialNoticeTemplate.php
+++ b/special/SpecialNoticeTemplate.php
@@ -859,7 +859,7 @@
        }
 
        public function getBannerName( $bannerId ) {
-               global $wgCentralDBnames;
+               global $wgCentralDBname;
                $dbr = wfGetDB( DB_MASTER, array(), $wgCentralDBname );
                if ( is_numeric( $bannerId ) ) {
                        $row = $dbr->selectRow( 'cn_templates', 'tmp_name', 
array( 'tmp_id' => $bannerId ) );

-- 
To view, visit https://gerrit.wikimedia.org/r/53281
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9dba4d1fd1c424580bf473c90a9358c707f8191c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Mwalker <[email protected]>

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

Reply via email to