Skip to content

Commit

Permalink
Fixed createFolders method
Browse files Browse the repository at this point in the history
  • Loading branch information
davarresc committed Nov 18, 2018
1 parent 4164f01 commit 625082a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GalleryBehavior.php
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public function getGalleryId()

private function createFolders($filePath)
{
return FileHelper::createDirectory(FileHelper::normalizePath($filePath), 0777);
return FileHelper::createDirectory(FileHelper::normalizePath(dirname($filePath)), 0777);
}

/////////////////////////////// ========== Public Actions ============ ///////////////////////////
Expand Down

0 comments on commit 625082a

Please sign in to comment.