Skip to content

Commit

Permalink
Pass the relative path to the delete methods
Browse files Browse the repository at this point in the history
  • Loading branch information
weotch committed Jun 24, 2015
1 parent 3a84747 commit 6436095
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bkwld/Croppa/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(URL $url, Storage $storage) {
* @see Bkwld\Croppa\Storage::deleteCrops()
*/
public function delete($url) {
$path = $this->url->toPath($url);
$path = $this->url->relativePath($url);
$this->storage->deleteSrc($path);
$this->storage->deleteCrops($path);
}
Expand All @@ -49,7 +49,7 @@ public function delete($url) {
* @see Bkwld\Croppa\Storage::deleteCrops()
*/
public function reset($url) {
$path = $this->url->toPath($url);
$path = $this->url->relativePath($url);
$this->storage->deleteCrops($path);
}

Expand Down

0 comments on commit 6436095

Please sign in to comment.