Added maintenance view with image-cleanup

This commit is contained in:
Dan Brown
2018-05-27 19:40:07 +01:00
parent 1df0bcaf85
commit 2bd6ba9895
9 changed files with 177 additions and 4 deletions

View File

@ -306,11 +306,11 @@ class ImageService extends UploadService
*
* Returns the path of the images that would be/have been deleted.
* @param bool $checkRevisions
* @param array $types
* @param bool $dryRun
* @param array $types
* @return array
*/
public function deleteUnusedImages($checkRevisions = true, $types = ['gallery', 'drawio'], $dryRun = true)
public function deleteUnusedImages($checkRevisions = true, $dryRun = true, $types = ['gallery', 'drawio'])
{
$types = array_intersect($types, ['gallery', 'drawio']);
$deletedPaths = [];