X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiFeedRecentChanges.php;h=9062ad92415c7d88c7943e5bde183bb11b06183c;hb=a580d5d60efaef9f8051a6fdbb8a869b289dce6b;hp=f1c1bf3e94236fae070faaf136c91a0ee4a7d5a3;hpb=9469cb2abe922fe95668de8dd19764341844fca6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiFeedRecentChanges.php b/includes/api/ApiFeedRecentChanges.php index f1c1bf3e94..9062ad9241 100644 --- a/includes/api/ApiFeedRecentChanges.php +++ b/includes/api/ApiFeedRecentChanges.php @@ -80,6 +80,10 @@ class ApiFeedRecentChanges extends ApiBase { public function getFeedObject( $feedFormat, $specialClass ) { if ( $specialClass === 'SpecialRecentchangeslinked' ) { $title = Title::newFromText( $this->params['target'] ); + if ( !$title ) { + $this->dieUsageMsg( array( 'invalidtitle', $this->params['target'] ) ); + } + $feed = new ChangesFeed( $feedFormat, false ); $feedObj = $feed->getFeedObject( $this->msg( 'recentchangeslinked-title', $title->getPrefixedText() )