From 2bfcec811ff099cf6c734b25d3db20de085f1dc5 Mon Sep 17 00:00:00 2001 From: jBOKA Date: Sun, 20 Sep 2015 06:03:42 +0200 Subject: [PATCH] Updated AssetList widget to use correct folder permissions --- modules/cms/widgets/AssetList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/cms/widgets/AssetList.php b/modules/cms/widgets/AssetList.php index d0fe1d15e..70f3b871c 100644 --- a/modules/cms/widgets/AssetList.php +++ b/modules/cms/widgets/AssetList.php @@ -293,7 +293,7 @@ class AssetList extends WidgetBase throw new ApplicationException(Lang::get('cms::lang.asset.already_exists')); } - if (!@mkdir($newFullPath)) { + if (!File::makeDirectory($newFullPath)) { throw new ApplicationException(Lang::get( 'cms::lang.cms_object.error_creating_directory', ['name' => $newName] @@ -422,7 +422,7 @@ class AssetList extends WidgetBase $assetsPath = $this->getAssetsPath(); if (!file_exists($assetsPath) || !is_dir($assetsPath)) { - if (!@mkdir($assetsPath)) { + if (!File::makeDirectory($assetsPath)) { throw new ApplicationException(Lang::get( 'cms::lang.cms_object.error_creating_directory', ['name'=>$assetsPath]