Use lowercase key words
[lhc/web/wiklou.git] / includes / rcfeed / JSONRCFeedFormatter.php
index d50139c..144ec95 100644 (file)
@@ -1,11 +1,12 @@
 <?php
+
 class JSONRCFeedFormatter implements RCFeedFormatter {
        /**
         * Generates a notification that can be easily interpreted by a machine.
         * @see RCFeedFormatter::getLine
         */
        public function getLine( array $feed, RecentChange $rc, $actionComment ) {
-               global $wgCanonicalServer, $wgScriptPath, $wgArticlePath, $wgDBname;
+               global $wgCanonicalServer, $wgScriptPath, $wgDBname;
                $attrib = $rc->getAttributes();
 
                $packet = array(
@@ -43,8 +44,8 @@ class JSONRCFeedFormatter implements RCFeedFormatter {
                                break;
 
                        case RC_NEW:
-                               $packet['length'] = array( 'old' => NULL, 'new' => $attrib['rc_new_len'] );
-                               $packet['revision'] = array( 'old' => NULL, 'new' => $attrib['rc_this_oldid'] );
+                               $packet['length'] = array( 'old' => null, 'new' => $attrib['rc_new_len'] );
+                               $packet['revision'] = array( 'old' => null, 'new' => $attrib['rc_this_oldid'] );
                                break;
 
                        case RC_LOG: