Skip to content

Commit

Permalink
Merge branch 'hotfix'
Browse files Browse the repository at this point in the history
  • Loading branch information
willkoua committed May 25, 2016
2 parents 5a4c9fe + f0b454d commit 4521dd1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Controller/PagesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,8 @@ public function administration($img = null)
//gestion des images du carousel
$pathCar = WWW_ROOT . "img/carousel/";
$pathTV = WWW_ROOT . "img/tv/";
chmod($pathCar, 777);
chmod($pathTV, 777);
$request = $this->request;

if (is_file($pathCar . $img)) {
Expand All @@ -572,6 +574,8 @@ public function administration($img = null)
} else {
$this->Flash->error(__('no file deleted'), 'er_gene');
}
}else {
$this->Flash->error(__('This file does not exist'), 'er_gene');
}
if ($request->is('post') && !empty($request->data)) {
$image = $request->data['avatar_file'];
Expand Down

0 comments on commit 4521dd1

Please sign in to comment.