X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FfindOrphanedFiles.php;h=e81e1971ec48b6c2e9206d20112a7cb0d915f577;hb=e6e932d9df9fcd2369822852c1453de2fc3d93be;hp=c4cab7168803fc919ee7cb090d57748aff29e0cb;hpb=716814a5d501efcc99b09fbb7e26caaf9a395d26;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/findOrphanedFiles.php b/maintenance/findOrphanedFiles.php index c4cab71688..e81e1971ec 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 = []; @@ -117,7 +117,7 @@ class FindOrphanedFiles extends Maintenance { $oiWheres ? $dbr->makeList( $oiWheres, LIST_OR ) : '1=0' ) ], - true // UNION ALL (performance) + $dbr::UNION_ALL ), __METHOD__ ); @@ -151,5 +151,5 @@ class FindOrphanedFiles extends Maintenance { } } -$maintClass = 'FindOrphanedFiles'; +$maintClass = FindOrphanedFiles::class; require_once RUN_MAINTENANCE_IF_MAIN;