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:
Fred Condo 2011-10-31 10:26:20 -07:00
parent 5f1faec3e2
commit dbfd54ba50

View File

@ -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 . '/';