Skip to content

Commit

Permalink
FIX Image backend ignoring config.
Browse files Browse the repository at this point in the history
The method directly calls the static property instead of the config value.
  • Loading branch information
micmania1 committed Nov 3, 2014
1 parent 4d603b8 commit 51337ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Image.php
Expand Up @@ -732,7 +732,7 @@ public function onAfterUpload() {
}

protected function onBeforeDelete() {
$backend = Injector::inst()->create(self::$backend);
$backend = Injector::inst()->create(self::get_backend());
$backend->onBeforeDelete($this);

$this->deleteFormattedImages();
Expand Down

0 comments on commit 51337ac

Please sign in to comment.