diff --git a/framework/library/astroid/Helper/Media.php b/framework/library/astroid/Helper/Media.php index 31265565..c7ebc2c8 100644 --- a/framework/library/astroid/Helper/Media.php +++ b/framework/library/astroid/Helper/Media.php @@ -311,8 +311,7 @@ public static function createFolder() if (file_exists($dir)) { throw new \Exception("Folder `$name` already exists", 0); } - - mkdir($dir, 0777); + Folder::create($dir); $folder = $name; if ($directory != 'images') {