mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
#1516 - Can't use picture add folder feature when there is no assets folder
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@43933 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
5d52994004
commit
f83acd219e
@ -33,6 +33,10 @@ class AssetAdmin extends LeftAndMain {
|
|||||||
function init() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
|
if(!file_exists('../assets')) {
|
||||||
|
mkdir('../assets');
|
||||||
|
}
|
||||||
|
|
||||||
// needed for MemberTableField (Requirements not determined before Ajax-Call)
|
// needed for MemberTableField (Requirements not determined before Ajax-Call)
|
||||||
Requirements::javascript("sapphire/javascript/ComplexTableField.js");
|
Requirements::javascript("sapphire/javascript/ComplexTableField.js");
|
||||||
Requirements::css("jsparty/greybox/greybox.css");
|
Requirements::css("jsparty/greybox/greybox.css");
|
||||||
@ -531,6 +535,9 @@ JS;
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Actually create
|
// Actually create
|
||||||
|
if(!file_exists('../assets')) {
|
||||||
|
mkdir('../assets');
|
||||||
|
}
|
||||||
mkdir($filename);
|
mkdir($filename);
|
||||||
chmod($filename, Filesystem::$file_create_mask);
|
chmod($filename, Filesystem::$file_create_mask);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user