rcfeed: Use wfWikiID() instead of $wgDBname
authorKunal Mehta <legoktm@gmail.com>
Sat, 11 Jan 2014 01:52:25 +0000 (17:52 -0800)
committerKunal Mehta <legoktm@gmail.com>
Sat, 11 Jan 2014 01:52:25 +0000 (17:52 -0800)
Change-Id: Id1f408a4c498f23f656298e3453d2a9264e3ac7c

includes/rcfeed/MachineReadableRCFeedFormatter.php

index 565d0eb..9321f52 100644 (file)
@@ -38,7 +38,7 @@ abstract class MachineReadableRCFeedFormatter implements RCFeedFormatter {
         * @see RCFeedFormatter::getLine
         */
        public function getLine( array $feed, RecentChange $rc, $actionComment ) {
-               global $wgCanonicalServer, $wgScriptPath, $wgDBname;
+               global $wgCanonicalServer, $wgScriptPath;
                $attrib = $rc->getAttributes();
 
                $packet = array(
@@ -121,7 +121,7 @@ abstract class MachineReadableRCFeedFormatter implements RCFeedFormatter {
 
                $packet['server_url'] = $wgCanonicalServer;
                $packet['server_script_path'] = $wgScriptPath ?: '/';
-               $packet['wiki'] = $wgDBname;
+               $packet['wiki'] = wfWikiID();
 
                return $this->formatArray( $packet );
        }