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 "Integrate module 'jquery.checkboxShiftClick' into 'mediawiki.page.ready'"
[lhc/web/wiklou.git]
/
includes
/
logging
/
MoveLogFormatter.php
diff --git
a/includes/logging/MoveLogFormatter.php
b/includes/logging/MoveLogFormatter.php
index
637a8e7
..
6797f98
100644
(file)
--- a/
includes/logging/MoveLogFormatter.php
+++ b/
includes/logging/MoveLogFormatter.php
@@
-23,6
+23,8
@@
* @since 1.22
*/
* @since 1.22
*/
+use MediaWiki\MediaWikiServices;
+
/**
* This class formats move log entries.
*
/**
* This class formats move log entries.
*
@@
-60,7
+62,9
@@
class MoveLogFormatter extends LogFormatter {
public function getActionLinks() {
if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden
|| $this->entry->getSubtype() !== 'move'
public function getActionLinks() {
if ( $this->entry->isDeleted( LogPage::DELETED_ACTION ) // Action is hidden
|| $this->entry->getSubtype() !== 'move'
- || !$this->context->getUser()->isAllowed( 'move' )
+ || !MediaWikiServices::getInstance()
+ ->getPermissionManager()
+ ->userHasRight( $this->context->getUser(), 'move' )
) {
return '';
}
) {
return '';
}