FIX Image backend ignoring config.

The method directly calls the static property instead of the config value.
This commit is contained in:
Michael Strong 2014-11-03 20:03:10 +13:00
parent 4d603b85f0
commit 51337acda9

View File

@ -732,7 +732,7 @@ class Image extends File {
}
protected function onBeforeDelete() {
$backend = Injector::inst()->create(self::$backend);
$backend = Injector::inst()->create(self::get_backend());
$backend->onBeforeDelete($this);
$this->deleteFormattedImages();