X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;ds=sidebyside;f=maintenance%2FcleanupUploadStash.php;h=b4bfff009f391e925c0faa41b02518bcd63f020b;hb=cc6e850520b79758fd791204d4b49715ee235c6b;hp=61cd9c24cd4e39cf23ce8bf3eb6b1658e11531a2;hpb=ee3147729028e025b177ff459a2f1670aef8a247;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;