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
Fix spaces in doc comments
[lhc/web/wiklou.git]
/
includes
/
MergeHistory.php
diff --git
a/includes/MergeHistory.php
b/includes/MergeHistory.php
index
0914a9b
..
4045a54
100644
(file)
--- a/
includes/MergeHistory.php
+++ b/
includes/MergeHistory.php
@@
-32,7
+32,7
@@
use Wikimedia\Rdbms\IDatabase;
*/
class MergeHistory {
*/
class MergeHistory {
- /**
@const int
Maximum number of revisions that can be merged at once */
+ /** Maximum number of revisions that can be merged at once */
const REVISION_LIMIT = 5000;
/** @var Title Page from which history will be merged */
const REVISION_LIMIT = 5000;
/** @var Title Page from which history will be merged */
@@
-178,7
+178,8
@@
class MergeHistory {
}
// Check mergehistory permission
}
// Check mergehistory permission
- if ( !$user->isAllowed( 'mergehistory' ) ) {
+ $permissionManager = MediaWikiServices::getInstance()->getPermissionManager();
+ if ( !$permissionManager->userHasRight( $user, 'mergehistory' ) ) {
// User doesn't have the right to merge histories
$status->fatal( 'mergehistory-fail-permission' );
}
// User doesn't have the right to merge histories
$status->fatal( 'mergehistory-fail-permission' );
}