X-Git-Url: http://git.cyclocoop.org/%24href?a=blobdiff_plain;f=maintenance%2FpurgeExpiredUserrights.php;h=ee40f5f4e79bdf8a96a173e278e22646da651e21;hb=5cb8e748c39725b1ca6e00284b84818490ba2385;hp=f5a085d9990693993f1c3914096cd460d0e4b3db;hpb=5fa4cdf860c79b32ab6ef034c6d9420c2727f695;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/purgeExpiredUserrights.php b/maintenance/purgeExpiredUserrights.php index f5a085d999..ee40f5f4e7 100644 --- a/maintenance/purgeExpiredUserrights.php +++ b/maintenance/purgeExpiredUserrights.php @@ -36,10 +36,14 @@ class PurgeExpiredUserrights extends Maintenance { public function execute() { $this->output( "Purging expired user rights...\n" ); - UserGroupMembership::purgeExpired(); - $this->output( "Purge requests submitted.\n" ); + $res = UserGroupMembership::purgeExpired(); + if ( $res === false ) { + $this->output( "Purging failed.\n" ); + } else { + $this->output( "$res rows purged.\n" ); + } } } -$maintClass = "PurgeExpiredUserrights"; +$maintClass = PurgeExpiredUserrights::class; require_once RUN_MAINTENANCE_IF_MAIN;