X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiQueryQueryPage.php;h=908cdee667b9614f41f90f4edfe915affbcf66a6;hp=9ba757c0784cb16d944e3bff70065919a3bf064a;hb=49748181dd56ec97e7ba7c13e684a16abceb3cc0;hpb=adae996840b9e782f6e14b21c433a83e37c3a74e diff --git a/includes/api/ApiQueryQueryPage.php b/includes/api/ApiQueryQueryPage.php index 9ba757c078..908cdee667 100644 --- a/includes/api/ApiQueryQueryPage.php +++ b/includes/api/ApiQueryQueryPage.php @@ -62,7 +62,7 @@ class ApiQueryQueryPage extends ApiQueryGeneratorBase { /** @var $qp QueryPage */ $qp = new $this->qpMap[$params['page']](); if ( !$qp->userCanExecute( $this->getUser() ) ) { - $this->dieUsageMsg( 'specialpage-cantexecute' ); + $this->dieWithError( 'apierror-specialpage-cantexecute' ); } $r = [ 'name' => $params['page'] ];