X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FinvalidateUserSessions.php;h=8d877a52dcc90860204674d4a1b802404d54512c;hb=66c91ac85b26c042b3d07255d1d7954be507699b;hp=8f67acddb9bd398b2a61aa33b81f74ebb1d04d53;hpb=1b13888ed6bd09731f10045650714a3392bb55df;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/invalidateUserSessions.php b/maintenance/invalidateUserSessions.php index 8f67acddb9..8d877a52dc 100644 --- a/maintenance/invalidateUserSessions.php +++ b/maintenance/invalidateUserSessions.php @@ -49,9 +49,9 @@ class InvalidateUserSesssions extends Maintenance { $file = $this->getOption( 'file' ); if ( $username === null && $file === null ) { - $this->error( 'Either --user or --file is required', 1 ); + $this->fatalError( 'Either --user or --file is required' ); } elseif ( $username !== null && $file !== null ) { - $this->error( 'Cannot use both --user and --file', 1 ); + $this->fatalError( 'Cannot use both --user and --file' ); } if ( $username !== null ) { @@ -60,7 +60,7 @@ class InvalidateUserSesssions extends Maintenance { $usernames = is_readable( $file ) ? file( $file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ) : false; if ( $usernames === false ) { - $this->error( "Could not open $file", 2 ); + $this->fatalError( "Could not open $file", 2 ); } } @@ -90,5 +90,5 @@ class InvalidateUserSesssions extends Maintenance { } } -$maintClass = "InvalidateUserSesssions"; +$maintClass = InvalidateUserSesssions::class; require_once RUN_MAINTENANCE_IF_MAIN;