X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUploadStash.php;h=61cd9c24cd4e39cf23ce8bf3eb6b1658e11531a2;hb=62e3318f82ebc1638d504cef155200999952d31a;hp=14c6a6b18a1f49f6e2a9340b699e92027308d84f;hpb=0773e0b86b7ff7fe45f09d806d7b946a41638c3b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 14c6a6b18a..61cd9c24cd 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -122,7 +122,7 @@ class UploadStashCleanup extends Maintenance { $iterator = $tempRepo->getBackend()->getFileList( [ 'dir' => $dir, 'adviseStat' => 1 ] ); $this->output( "Deleting orphaned temp files...\n" ); if ( strpos( $dir, '/local-temp' ) === false ) { // sanity check - $this->error( "Temp repo is not using the temp container.", 1 ); // die + $this->fatalError( "Temp repo is not using the temp container." ); } $i = 0; $batch = []; // operation batch @@ -152,5 +152,5 @@ class UploadStashCleanup extends Maintenance { } } -$maintClass = "UploadStashCleanup"; +$maintClass = UploadStashCleanup::class; require_once RUN_MAINTENANCE_IF_MAIN;