diff options
Diffstat (limited to 'model/Image.php')
-rw-r--r-- | model/Image.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/model/Image.php b/model/Image.php index e8bf3f9..05773e9 100644 --- a/model/Image.php +++ b/model/Image.php | |||
@@ -4,7 +4,10 @@ | |||
4 | class Image | 4 | class Image |
5 | { | 5 | { |
6 | private $page; | 6 | private $page; |
7 | |||
7 | private $ajax; // vaut true avec le ckeditor | 8 | private $ajax; // vaut true avec le ckeditor |
9 | public $reponseAjax; | ||
10 | |||
8 | public $path; | 11 | public $path; |
9 | public $pathMini; | 12 | public $pathMini; |
10 | public $pathInfos; | 13 | public $pathInfos; |
@@ -51,9 +54,8 @@ class Image | |||
51 | // retour des rêquetes AJAX | 54 | // retour des rêquetes AJAX |
52 | if($this->ajax && empty($Image->erreur)) | 55 | if($this->ajax && empty($Image->erreur)) |
53 | { | 56 | { |
54 | // nouveau chemin à renvoyer en format json | 57 | // chemin en JSON attendu par l'éditeur |
55 | $chemin = '{"url": "data/' . $this->page . '/images/' . $_FILES['upload']['name'] . '"}'; | 58 | $this->reponseAjax = '{"url": "data/' . $this->page . '/images/' . $_FILES['upload']['name'] . '"}'; |
56 | echo $chemin; | ||
57 | } | 59 | } |
58 | } | 60 | } |
59 | 61 | ||