X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=maintenance%2FfindOrphanedFiles.php;h=522bbc253944b64332834ca5979800494327e525;hp=c4cab7168803fc919ee7cb090d57748aff29e0cb;hb=86d7bd86fa08db2dbf3651a656d8238a34703c4f;hpb=dac20d0ffab5a850563d3fb02331a927e42a2bd9 diff --git a/maintenance/findOrphanedFiles.php b/maintenance/findOrphanedFiles.php index c4cab71688..522bbc2539 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 = [];