<?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(
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: