$feedFormat = $this->params['feedformat'];
$specialClass = $this->params['target'] !== null
- ? 'SpecialRecentchangeslinked'
- : 'SpecialRecentchanges';
+ ? SpecialRecentChangesLinked::class
+ : SpecialRecentChanges::class;
$formatter = $this->getFeedObject( $feedFormat, $specialClass );
* Return a ChannelFeed object.
*
* @param string $feedFormat Feed's format (either 'rss' or 'atom')
- * @param string $specialClass Relevant special page name (either 'SpecialRecentchanges' or
- * 'SpecialRecentchangeslinked')
+ * @param string $specialClass Relevant special page name (either 'SpecialRecentChanges' or
+ * 'SpecialRecentChangesLinked')
* @return ChannelFeed
*/
public function getFeedObject( $feedFormat, $specialClass ) {
- if ( $specialClass === 'SpecialRecentchangeslinked' ) {
+ if ( $specialClass === SpecialRecentChangesLinked::class ) {
$title = Title::newFromText( $this->params['target'] );
if ( !$title ) {
$this->dieWithError( [ 'apierror-invalidtitle', wfEscapeWikiText( $this->params['target'] ) ] );
'showlinkedto' => false,
];
- if ( $config->get( 'AllowCategorizedRecentChanges' ) ) {
- $ret += [
- 'categories' => [
- ApiBase::PARAM_TYPE => 'string',
- ApiBase::PARAM_ISMULTI => true,
- ],
- 'categories_any' => false,
- ];
- }
-
return $ret;
}