X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Frevisiondelete%2FRevisionDeleteUser.php;h=5644b958145350bca86cd7161a1536485c8bb672;hb=6cfb2e3d7a2b96d5041312fcec88248bb46573d7;hp=f7f7e8956ab07f79850d2a9200d42c901bca86e7;hpb=b6a1f3bc774d043c69e9ed2875210049cdda9d68;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/revisiondelete/RevisionDeleteUser.php b/includes/revisiondelete/RevisionDeleteUser.php index f7f7e8956a..5644b95814 100644 --- a/includes/revisiondelete/RevisionDeleteUser.php +++ b/includes/revisiondelete/RevisionDeleteUser.php @@ -21,6 +21,7 @@ * @ingroup RevisionDelete */ +use MediaWiki\Storage\RevisionRecord; use Wikimedia\Rdbms\IDatabase; /** @@ -52,13 +53,13 @@ class RevisionDeleteUser { $dbw = wfGetDB( DB_MASTER ); } - # To suppress, we OR the current bitfields with Revision::DELETED_USER + # To suppress, we OR the current bitfields with RevisionRecord::DELETED_USER # to put a 1 in the username *_deleted bit. To unsuppress we AND the - # current bitfields with the inverse of Revision::DELETED_USER. The + # current bitfields with the inverse of RevisionRecord::DELETED_USER. The # username bit is made to 0 (x & 0 = 0), while others are unchanged (x & 1 = x). # The same goes for the sysop-restricted *_deleted bit. - $delUser = Revision::DELETED_USER | Revision::DELETED_RESTRICTED; - $delAction = LogPage::DELETED_ACTION | Revision::DELETED_RESTRICTED; + $delUser = RevisionRecord::DELETED_USER | RevisionRecord::DELETED_RESTRICTED; + $delAction = LogPage::DELETED_ACTION | RevisionRecord::DELETED_RESTRICTED; if ( $op === '&' ) { $delUser = $dbw->bitNot( $delUser ); $delAction = $dbw->bitNot( $delAction );