X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUploadStash.php;h=d255348374b38efef227ac3c5188c9a3039aebb7;hb=386bd27f6449b8e68b65a7267498b803d05970ae;hp=14c6a6b18a1f49f6e2a9340b699e92027308d84f;hpb=6f6e7d6dfd5b4c5cdb4f1e4f80be77dd8ad71b57;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 14c6a6b18a..d255348374 100644 --- a/maintenance/cleanupUploadStash.php +++ b/maintenance/cleanupUploadStash.php @@ -33,7 +33,7 @@ require_once __DIR__ . '/Maintenance.php'; * * @ingroup Maintenance */ -class UploadStashCleanup extends Maintenance { +class CleanupUploadStash extends Maintenance { public function __construct() { parent::__construct(); @@ -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 = CleanupUploadStash::class; require_once RUN_MAINTENANCE_IF_MAIN;