Reverted change in proposal file storage path that wasn't needed

pull/712/head
iglocska 2015-10-22 09:51:31 +02:00
parent fa55f7fa9d
commit 6fa27d659a
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
{"major":2, "minor":3, "hotfix":144}
{"major":2, "minor":3, "hotfix":145}

View File

@ -438,7 +438,7 @@ class ShadowAttributesController extends AppController {
}
private function __downloadAttachment($shadowAttribute) {
$path = "files" . DS . $shadowAttribute['event_id'] . DS . 'shadow' . DS;
$path = "files" . DS . 'shadow' . DS . $shadowAttribute['event_id'] . DS;
$file = $shadowAttribute['id'];
$filename = '';
if ('attachment' == $shadowAttribute['type']) {

View File

@ -438,7 +438,7 @@ class ShadowAttribute extends AppModel {
}
public function saveBase64EncodedAttachment($attribute) {
$rootDir = APP . DS . "files" . DS . $attribute['event_id'] . DS . 'shadow';
$rootDir = APP . DS . "files" . DS . 'shadow' . DS . $attribute['event_id'];
$dir = new Folder($rootDir, true); // create directory structure
$destpath = $rootDir . DS . $attribute['id'];
$file = new File ($destpath, true); // create the file