X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FcleanupUploadStash.php;h=b4bfff009f391e925c0faa41b02518bcd63f020b;hb=29bee071b23832173a55364453d3132a2fe26101;hp=61cd9c24cd4e39cf23ce8bf3eb6b1658e11531a2;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/cleanupUploadStash.php b/maintenance/cleanupUploadStash.php index 61cd9c24cd..b4bfff009f 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(); @@ -147,10 +147,11 @@ class UploadStashCleanup extends Maintenance { protected function doOperations( FileRepo $tempRepo, array $ops ) { $status = $tempRepo->getBackend()->doQuickOperations( $ops ); if ( !$status->isOK() ) { + // @phan-suppress-next-line PhanUndeclaredMethod $this->error( print_r( $status->getErrorsArray(), true ) ); } } } -$maintClass = UploadStashCleanup::class; +$maintClass = CleanupUploadStash::class; require_once RUN_MAINTENANCE_IF_MAIN;