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 "Show a warning in edit preview when a template loop is detected"
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiQueryQueryPage.php
diff --git
a/includes/api/ApiQueryQueryPage.php
b/includes/api/ApiQueryQueryPage.php
index
9ba757c
..
46c2265
100644
(file)
--- a/
includes/api/ApiQueryQueryPage.php
+++ b/
includes/api/ApiQueryQueryPage.php
@@
-59,10
+59,10
@@
class ApiQueryQueryPage extends ApiQueryGeneratorBase {
$params = $this->extractRequestParams();
$result = $this->getResult();
$params = $this->extractRequestParams();
$result = $this->getResult();
- /** @var
$qp QueryPage
*/
+ /** @var
QueryPage $qp
*/
$qp = new $this->qpMap[$params['page']]();
if ( !$qp->userCanExecute( $this->getUser() ) ) {
$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'] ];
@@
-129,7
+129,7
@@
class ApiQueryQueryPage extends ApiQueryGeneratorBase {
}
public function getCacheMode( $params ) {
}
public function getCacheMode( $params ) {
- /** @var
$qp QueryPage
*/
+ /** @var
QueryPage $qp
*/
$qp = new $this->qpMap[$params['page']]();
if ( $qp->getRestriction() != '' ) {
return 'private';
$qp = new $this->qpMap[$params['page']]();
if ( $qp->getRestriction() != '' ) {
return 'private';
@@
-166,6
+166,6
@@
class ApiQueryQueryPage extends ApiQueryGeneratorBase {
}
public function getHelpUrls() {
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Querypage';
+ return 'https://www.mediawiki.org/wiki/
Special:MyLanguage/
API:Querypage';
}
}
}
}