page Settgins ready

This commit is contained in:
Martin Müller 2014-03-26 09:16:16 +01:00
parent c26d0e1ddf
commit c2c411cf34
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public function saveAndUpload($data){
$dataSource->begin();
$result = $this->saveAssociated($data);
if($result){
$filename = $data["DreamjobPageInh"]['user_id'] . "_-_p" . $this->id .".". pathinfo($data[$this->alias]['image']['name'], PATHINFO_EXTENSION);
$filename = $data["DreamjobPageInh"]['user_id'] . "_-page-_" . $this->id .".". pathinfo($data[$this->alias]['image']['name'], PATHINFO_EXTENSION);
$filename = WWW_ROOT . $this->uploadDir . DS . $filename;
if (!move_uploaded_file($data[$this->alias]['image']['tmp_name'], $filename)) {