X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialUserrights.php;h=d0a0317fa8f19bea1dd794197cafdb8fdc1850db;hb=be42e09aa866d7def54ead06c91d5dc9c8210ce5;hp=127b530e0f72f03addcb4e12164fb3127edda1aa;hpb=2dd58ade75d15a5895c0c010e17b6f729a0f72fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 127b530e0f..d0a0317fa8 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -215,7 +215,7 @@ class UserrightsPage extends SpecialPage { * @return bool */ public function canProcessExpiries() { - return !$this->getConfig()->get( 'DisableUserGroupExpiry' ); + return true; } /** @@ -344,7 +344,7 @@ class UserrightsPage extends SpecialPage { // UNLESS the user can only add this group (not remove it) and the expiry time // is being brought forward (T156784) $add = array_filter( $add, - function( $group ) use ( $groups, $groupExpiries, $removable, $ugms ) { + function ( $group ) use ( $groups, $groupExpiries, $removable, $ugms ) { if ( isset( $groupExpiries[$group] ) && !in_array( $group, $removable ) && isset( $ugms[$group] ) && @@ -437,12 +437,12 @@ class UserrightsPage extends SpecialPage { // make sure $oldUGMs and $newUGMs are in the same order, and serialise // each UGM object to a simplified array - $oldUGMs = array_map( function( $group ) use ( $oldUGMs ) { + $oldUGMs = array_map( function ( $group ) use ( $oldUGMs ) { return isset( $oldUGMs[$group] ) ? self::serialiseUgmForLog( $oldUGMs[$group] ) : null; }, $oldGroups ); - $newUGMs = array_map( function( $group ) use ( $newUGMs ) { + $newUGMs = array_map( function ( $group ) use ( $newUGMs ) { return isset( $newUGMs[$group] ) ? self::serialiseUgmForLog( $newUGMs[$group] ) : null;