Skip to content

Commit

Permalink
Merge pull request #64 from davarresc/master
Browse files Browse the repository at this point in the history
Fixed createFolders method
  • Loading branch information
zxbodya authored Nov 18, 2018
2 parents 4164f01 + 625082a commit f6da898
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 f6da898

Please sign in to comment.