public function execute() {
$config = $this->getConfig();
$feedClasses = $config->get( 'FeedClasses' );
+ $params = [];
try {
$params = $this->extractRequestParams();
// Something is seriously wrong
$errorCode = 'internal_api_error';
}
- $errorTitle = $this->msg( 'api-feed-error-title', $msg->getApiCode() );
+ $errorTitle = $this->msg( 'api-feed-error-title', $errorCode );
$errorText = $e->getMessage();
$feedItems[] = new FeedItem( $errorTitle, $errorText, '', '', '' );
}
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Watchlist_feed';
+ return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Watchlist_feed';
}
}