dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Move PageArchive class to it's own file"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryQueryPage.php
diff --git
a/includes/api/ApiQueryQueryPage.php
b/includes/api/ApiQueryQueryPage.php
index
9ba757c
..
908cdee
100644
(file)
--- 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() ) ) {
/** @var $qp QueryPage */
$qp = new $this->qpMap[$params['page']]();
if ( !$qp->userCanExecute( $this->getUser() ) ) {
- $this->die
UsageMsg( '
specialpage-cantexecute' );
+ $this->die
WithError( 'apierror-
specialpage-cantexecute' );
}
$r = [ 'name' => $params['page'] ];
}
$r = [ 'name' => $params['page'] ];