X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FfindOrphanedFiles.php;h=57e04e0ea19aca0e167c5d840c1ec51a0acf5c02;hb=5490b1270a0a7447f28d2407736fc3c1deb41d44;hp=c4cab7168803fc919ee7cb090d57748aff29e0cb;hpb=c9be16a35596ff369bb5f700c20ae8dc2f7def48;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findOrphanedFiles.php b/maintenance/findOrphanedFiles.php index c4cab71688..57e04e0ea1 100644 --- a/maintenance/findOrphanedFiles.php +++ b/maintenance/findOrphanedFiles.php @@ -37,7 +37,7 @@ class FindOrphanedFiles extends Maintenance { $repo = RepoGroup::singleton()->getLocalRepo(); if ( $repo->hasSha1Storage() ) { - $this->error( "Local repo uses SHA-1 file storage names; aborting.", 1 ); + $this->fatalError( "Local repo uses SHA-1 file storage names; aborting." ); } $directory = $repo->getZonePath( 'public' ); @@ -51,7 +51,7 @@ class FindOrphanedFiles extends Maintenance { $list = $repo->getBackend()->getFileList( [ 'dir' => $directory ] ); if ( $list === null ) { - $this->error( "Could not get file listing.", 1 ); + $this->fatalError( "Could not get file listing." ); } $pathBatch = []; @@ -151,5 +151,5 @@ class FindOrphanedFiles extends Maintenance { } } -$maintClass = 'FindOrphanedFiles'; +$maintClass = FindOrphanedFiles::class; require_once RUN_MAINTENANCE_IF_MAIN;