Skip to content

Commit

Permalink
FIX Create Image_Cached with Injector.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregory Smirnov committed Apr 26, 2017
1 parent 22cdf4c commit 1d36f35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion model/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ public function getFormattedImage($format) {
call_user_func_array(array($this, "generateFormattedImage"), $args);
}

$cached = new Image_Cached($cacheFile, false, $this);
$cached = Injector::inst()->createWithArgs('Image_Cached', array($cacheFile, false, $this));
return $cached;
}
}
Expand Down

0 comments on commit 1d36f35

Please sign in to comment.