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
Set l18n cache to array in DevelopmentSettings.php
[lhc/web/wiklou.git]
/
includes
/
revisiondelete
/
RevisionDeleter.php
diff --git
a/includes/revisiondelete/RevisionDeleter.php
b/includes/revisiondelete/RevisionDeleter.php
index
7b2147a
..
6361a7a
100644
(file)
--- a/
includes/revisiondelete/RevisionDeleter.php
+++ b/
includes/revisiondelete/RevisionDeleter.php
@@
-21,6
+21,8
@@
* @ingroup RevisionDelete
*/
* @ingroup RevisionDelete
*/
+use MediaWiki\Revision\RevisionRecord;
+
/**
* General controller for RevDel, used by both SpecialRevisiondelete and
* ApiRevisionDelete.
/**
* General controller for RevDel, used by both SpecialRevisiondelete and
* ApiRevisionDelete.
@@
-129,14
+131,14
@@
class RevisionDeleter {
$ret = [ 0 => [], 1 => [], 2 => [] ];
// Build bitfield changes in language
self::checkItem( 'revdelete-content',
$ret = [ 0 => [], 1 => [], 2 => [] ];
// Build bitfield changes in language
self::checkItem( 'revdelete-content',
- Revision::DELETED_TEXT, $diff, $n, $ret );
+ Revision
Record
::DELETED_TEXT, $diff, $n, $ret );
self::checkItem( 'revdelete-summary',
self::checkItem( 'revdelete-summary',
- Revision::DELETED_COMMENT, $diff, $n, $ret );
+ Revision
Record
::DELETED_COMMENT, $diff, $n, $ret );
self::checkItem( 'revdelete-uname',
self::checkItem( 'revdelete-uname',
- Revision::DELETED_USER, $diff, $n, $ret );
+ Revision
Record
::DELETED_USER, $diff, $n, $ret );
// Restriction application to sysops
// Restriction application to sysops
- if ( $diff & Revision::DELETED_RESTRICTED ) {
- if ( $n & Revision::DELETED_RESTRICTED ) {
+ if ( $diff & Revision
Record
::DELETED_RESTRICTED ) {
+ if ( $n & Revision
Record
::DELETED_RESTRICTED ) {
$ret[2][] = 'revdelete-restricted';
} else {
$ret[2][] = 'revdelete-unrestricted';
$ret[2][] = 'revdelete-restricted';
} else {
$ret[2][] = 'revdelete-unrestricted';