From c2c411cf342c2ebcbbd694091bb54db61b72df6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Wed, 26 Mar 2014 09:16:16 +0100 Subject: [PATCH] page Settgins ready --- app/Model/DreamjobPageImage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/DreamjobPageImage.php b/app/Model/DreamjobPageImage.php index f6d27b0..a52a385 100644 --- a/app/Model/DreamjobPageImage.php +++ b/app/Model/DreamjobPageImage.php @@ -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)) {