Skip to content

Commit

Permalink
Fix PUTting images.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Mar 6, 2015
1 parent b4439a0 commit 901953f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansel/lib/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function put($path, $content, $content_type)
$path = trim($path, '/');
$parts = explode('/', $path);

if (count($parts) < 3) {
if (count($parts) < 2) {
throw new Horde_Exception_NotFound("Gallery does not exist");
}
$image_name = array_pop($parts);
Expand Down

0 comments on commit 901953f

Please sign in to comment.