Like we do in ApiQueryRecentChanges as well, expose the named
rc.type property, not the internal integer constants.
Change-Id: I89a948eee999032bb2e42cc23345affa879afb42
case RC_NEW:
$type = 'new';
break;
- case RC_MOVE:
+ case RC_MOVE: // obsolete
$type = 'move';
break;
case RC_LOG:
case RC_EXTERNAL:
$type = 'external';
break;
- case RC_MOVE_OVER_REDIRECT:
+ case RC_MOVE_OVER_REDIRECT: // obsolete
$type = 'move over redirect';
break;
default:
// but there is no real reason not to expose it in other cases,
// and I can see how this may be potentially useful for clients.
'id' => $attrib['rc_id'],
- 'type' => $attrib['rc_type'],
+ 'type' => RecentChange::parseFromRCType( $attrib['rc_type'] ),
'namespace' => $rc->getTitle()->getNamespace(),
'title' => $rc->getTitle()->getPrefixedText(),
'comment' => $attrib['rc_comment'],