mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: Get all method names to find cached images
Because some extensions add functions that generate cached images, deleteFormattedImages() needs to find all the method names by passing true to allMethodNames().
This commit is contained in:
parent
5f1faec3e2
commit
dbfd54ba50
@ -339,7 +339,7 @@ class Image extends File {
|
||||
if(!$this->Filename) return 0;
|
||||
|
||||
$numDeleted = 0;
|
||||
$methodNames = $this->allMethodNames();
|
||||
$methodNames = $this->allMethodNames(true);
|
||||
$cachedFiles = array();
|
||||
|
||||
$folder = $this->ParentID ? $this->Parent()->Filename : ASSETS_DIR . '/';
|
||||
|
Loading…
x
Reference in New Issue
Block a user