From e91c0ca9df18bc0c5ed0602a35a3d4e50c7798c6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sat, 21 Nov 2009 03:20:32 +0000 Subject: [PATCH] MINOR Using Filesystem::makeFolder() for creating /assets in AssetAdmin->init() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@92837 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/AssetAdmin.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/code/AssetAdmin.php b/code/AssetAdmin.php index bc14d259..a9141eb1 100755 --- a/code/AssetAdmin.php +++ b/code/AssetAdmin.php @@ -70,12 +70,10 @@ class AssetAdmin extends LeftAndMain { function init() { parent::init(); - if(!file_exists(ASSETS_PATH)) { - mkdir(ASSETS_PATH); - } - // needed for MemberTableField (Requirements not determined before Ajax-Call) Requirements::css(SAPPHIRE_DIR . "/css/ComplexTableField.css"); + // Create base folder if it doesnt exist already + if(!file_exists(ASSETS_PATH)) Filesystem::makeFolder(ASSETS_PATH); Requirements::javascript(CMS_DIR . "/javascript/AssetAdmin.js");