*
* @ingroup Maintenance
*/
-class UploadStashCleanup extends Maintenance {
+class CleanupUploadStash extends Maintenance {
public function __construct() {
parent::__construct();
$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
}
}
-$maintClass = "UploadStashCleanup";
+$maintClass = CleanupUploadStash::class;
require_once RUN_MAINTENANCE_IF_MAIN;