Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

MINOR Defaulting upload dir to /assets rather than /assets/Uploads in…

… CMSFileAddController when viewing root folder
  • Loading branch information...
commit 8fb2755c5b7b13cbfa6ab96843af1a30417ebc31 1 parent a30a615
Ingo Schommer chillu authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  code/controllers/CMSFileAddController.php
2  code/controllers/CMSFileAddController.php
View
@@ -66,6 +66,8 @@ public function getEditForm($id = null, $fields = null) {
// 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(
Please sign in to comment.
Something went wrong with that request. Please try again.