Skip to content

Commit

Permalink
Merge pull request #4 from martinknor/master
Browse files Browse the repository at this point in the history
Bug - missing argument for friendly url
  • Loading branch information
paveljanda committed Mar 10, 2016
2 parents 9b8ea57 + a7424c5 commit bde0b41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ImageStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,15 @@ public function getNoImage($return_image = FALSE)
}

if ($return_image) {
return new Image($this->data_dir, $this->data_path, $identifier);
return new Image($this->friendly_url, $this->data_dir, $this->data_path, $identifier);
}

$script = ImageNameScript::fromIdentifier($identifier);
return [$script, $new_path];
}

if ($return_image) {
return new Image($this->data_dir, $this->data_path, $this->noimage_identifier);
return new Image($this->friendly_url, $this->data_dir, $this->data_path, $this->noimage_identifier);
}

return [$script, $file];
Expand Down

0 comments on commit bde0b41

Please sign in to comment.