diff options
Diffstat (limited to 'model/Article.php')
| -rw-r--r-- | model/Article.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/model/Article.php b/model/Article.php index f4fe65a..33848bb 100644 --- a/model/Article.php +++ b/model/Article.php | |||
| @@ -252,6 +252,14 @@ class Article | |||
| 252 | // delete | 252 | // delete |
| 253 | public function delete() | 253 | public function delete() |
| 254 | { | 254 | { |
| 255 | unlink('data/' . $this->page . '/' . $this->format . '/' . $this->fileCode . '.' . $this->format); | 255 | $path = 'data/' . $this->page . '/' . $this->format . '/' . $this->fileCode . '.' . $this->format; |
| 256 | unlink($path); | ||
| 257 | |||
| 258 | // fichiers html dans html-maxi-images | ||
| 259 | $path_maxi = 'data/' . $this->page . '/' . $this->format . '-maxi-images/' . $this->fileCode . '.' . $this->format; | ||
| 260 | if(file_exists($path_maxi)) | ||
| 261 | { | ||
| 262 | unlink($path_maxi); | ||
| 263 | } | ||
| 256 | } | 264 | } |
| 257 | } | 265 | } |
