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 "HTMLTitleTextField: Remove incorrect check for unsubmitted GET forms"
[lhc/web/wiklou.git]
/
includes
/
specials
/
SpecialChangeContentModel.php
diff --git
a/includes/specials/SpecialChangeContentModel.php
b/includes/specials/SpecialChangeContentModel.php
index
01f7e56
..
46fa17e
100644
(file)
--- a/
includes/specials/SpecialChangeContentModel.php
+++ b/
includes/specials/SpecialChangeContentModel.php
@@
-1,5
+1,7
@@
<?php
<?php
+use MediaWiki\MediaWikiServices;
+
class SpecialChangeContentModel extends FormSpecialPage {
public function __construct() {
class SpecialChangeContentModel extends FormSpecialPage {
public function __construct() {
@@
-226,7
+228,10
@@
class SpecialChangeContentModel extends FormSpecialPage {
$flags = $this->oldRevision ? EDIT_UPDATE : EDIT_NEW;
$flags |= EDIT_INTERNAL;
$flags = $this->oldRevision ? EDIT_UPDATE : EDIT_NEW;
$flags |= EDIT_INTERNAL;
- if ( $user->isAllowed( 'bot' ) ) {
+ if ( MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $user, 'bot' )
+ ) {
$flags |= EDIT_FORCE_BOT;
}
$flags |= EDIT_FORCE_BOT;
}