X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fapi%2FApiFeedRecentChanges.php;h=678b97b0a567ebc39575f2228515fd84f37aedc8;hb=7a8f2c6f0ba15fc56328d86e8a40b342d40b655c;hp=2a80dd535445550334c78d864a1b1654bc8d57b2;hpb=8ddf721b6feaf11c67aafc1445d255e68faa4007;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFeedRecentChanges.php b/includes/api/ApiFeedRecentChanges.php index 2a80dd5354..678b97b0a5 100644 --- a/includes/api/ApiFeedRecentChanges.php +++ b/includes/api/ApiFeedRecentChanges.php @@ -101,7 +101,7 @@ class ApiFeedRecentChanges extends ApiBase { $this->dieWithError( [ 'apierror-invalidtitle', wfEscapeWikiText( $this->params['target'] ) ] ); } - $feed = new ChangesFeed( $feedFormat, false ); + $feed = new ChangesFeed( $feedFormat ); $feedObj = $feed->getFeedObject( $this->msg( 'recentchangeslinked-title', $title->getPrefixedText() ) ->inContentLanguage()->text(), @@ -109,7 +109,7 @@ class ApiFeedRecentChanges extends ApiBase { SpecialPage::getTitleFor( 'Recentchangeslinked' )->getFullURL() ); } else { - $feed = new ChangesFeed( $feedFormat, 'rcfeed' ); + $feed = new ChangesFeed( $feedFormat ); $feedObj = $feed->getFeedObject( $this->msg( 'recentchanges' )->inContentLanguage()->text(), $this->msg( 'recentchanges-feed-description' )->inContentLanguage()->text(), @@ -169,16 +169,6 @@ class ApiFeedRecentChanges extends ApiBase { 'showlinkedto' => false, ]; - if ( $config->get( 'AllowCategorizedRecentChanges' ) ) { - $ret += [ - 'categories' => [ - ApiBase::PARAM_TYPE => 'string', - ApiBase::PARAM_ISMULTI => true, - ], - 'categories_any' => false, - ]; - } - return $ret; }