X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryLinks.php;h=e9ae132df723e9e7412af1809940542bad1e3d38;hb=41f1ce0d35b929d480ce87605a3234c187e44fd2;hp=6e5239f7b9324d5a6bbb037dae7ae2dd52b07a8c;hpb=40a628a501fc05bb00e834fe359ca4061925f320;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryLinks.php b/includes/api/ApiQueryLinks.php index 6e5239f7b9..e9ae132df7 100644 --- a/includes/api/ApiQueryLinks.php +++ b/includes/api/ApiQueryLinks.php @@ -94,7 +94,7 @@ class ApiQueryLinks extends ApiQueryGeneratorBase { foreach ( $params[$this->titlesParam] as $t ) { $title = Title::newFromText( $t ); if ( !$title ) { - $this->setWarning( "\"$t\" is not a valid title" ); + $this->addWarning( [ 'apiwarn-invalidtitle', wfEscapeWikiText( $t ) ] ); } else { $lb->addObj( $title ); }