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
Drop deprecated EnableAPI and EnableWriteAPI settings
[lhc/web/wiklou.git]
/
includes
/
page
/
Article.php
diff --git
a/includes/page/Article.php
b/includes/page/Article.php
index
3cbeacf
..
7577972
100644
(file)
--- a/
includes/page/Article.php
+++ b/
includes/page/Article.php
@@
-965,7
+965,7
@@
class Article implements Page {
* @return bool
*/
public function showPatrolFooter() {
* @return bool
*/
public function showPatrolFooter() {
- global $wgUseNPPatrol, $wgUseRCPatrol, $wgUseFilePatrol
, $wgEnableAPI, $wgEnableWriteAPI
;
+ global $wgUseNPPatrol, $wgUseRCPatrol, $wgUseFilePatrol;
$outputPage = $this->getContext()->getOutput();
$user = $this->getContext()->getUser();
$outputPage = $this->getContext()->getOutput();
$user = $this->getContext()->getUser();
@@
-1100,7
+1100,7
@@
class Article implements Page {
}
$outputPage->preventClickjacking();
}
$outputPage->preventClickjacking();
- if ( $
wgEnableAPI && $wgEnableWriteAPI && $
user->isAllowed( 'writeapi' ) ) {
+ if ( $user->isAllowed( 'writeapi' ) ) {
$outputPage->addModules( 'mediawiki.page.patrol.ajax' );
}
$outputPage->addModules( 'mediawiki.page.patrol.ajax' );
}