Skip to content

Commit

Permalink
Resolved #16, Optional data cache
Browse files Browse the repository at this point in the history
  • Loading branch information
dusta authored Dec 6, 2018
1 parent 5a14f41 commit 530f17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ protected function getStylist($stylist = 'orginal')
*
* @return array
*/
public function get($adapter = 'local')
public function get($adapter = 'local', $data = false)
{
$data = $this->cache($adapter, $this->orginalImage);

if (!empty($this->storage->getDriver())) {
if (!empty($this->storage->getDriver()) and $data === true) {
$get = $this->storage->getDriver()
->get($adapter, $this->orginalImage, $data['cache']);
if ($get['return'] === true) {
Expand Down

0 comments on commit 530f17d

Please sign in to comment.