MINOR Defaulting upload dir to /assets rather than /assets/Uploads in CMSFileAddController when viewing root folder

This commit is contained in:
Ingo Schommer 2012-03-08 22:17:05 +01:00
parent a30a615de4
commit 8fb2755c5b

View File

@ -66,6 +66,8 @@ class CMSFileAddController extends LeftAndMain {
// The Upload class expects a folder relative *within* assets/
$path = preg_replace('/^' . ASSETS_DIR . '\//', '', $folder->getFilename());
$uploadField->setFolderName($path);
} else {
$uploadField->setFolderName(ASSETS_DIR);
}
$form = new Form(