X-Git-Url: https://git.cyclocoop.org/admin/?a=blobdiff_plain;f=maintenance%2FfindOrphanedFiles.php;h=57e04e0ea19aca0e167c5d840c1ec51a0acf5c02;hb=b4f6ef9d84e210500a197ce8d3ed2866eb5702a4;hp=c4cab7168803fc919ee7cb090d57748aff29e0cb;hpb=0cf636a075b1716916979cc6c3bfead9ef960e01;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;