aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllermedia.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-10-18 14:20:55 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-10-18 14:20:55 +0200
commit1d011471674ede030407c351abfbf2bfc93d8b7a (patch)
tree91bbe902de1d9c31eea09eb3961781f5886cf70c /app/class/controllermedia.php
parent8b6848dfb5d469076f05be226e862fab928cd53f (diff)
downloadwcms-1d011471674ede030407c351abfbf2bfc93d8b7a.tar.gz
wcms-1d011471674ede030407c351abfbf2bfc93d8b7a.zip
new page render system
create html files in `/render` folder
Diffstat (limited to 'app/class/controllermedia.php')
-rw-r--r--app/class/controllermedia.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/class/controllermedia.php b/app/class/controllermedia.php
index 93ab218..6cde0ce 100644
--- a/app/class/controllermedia.php
+++ b/app/class/controllermedia.php
@@ -19,13 +19,13 @@ class Controllermedia extends Controller
{
if ($this->user->iseditor()) {
- if (!$this->mediamanager->basedircheck()) {
+ if (!$this->mediamanager->dircheck(Model::MEDIA_DIR)) {
throw new Exception("Media error : Cant create /media folder");
}
- if (!$this->mediamanager->favicondircheck()) {
+ if (!$this->mediamanager->dircheck(Model::FAVICON_DIR)) {
throw new Exception("Media error : Cant create /media/favicon folder");
}
- if (!$this->mediamanager->thumbnaildircheck()) {
+ if (!$this->mediamanager->dircheck(Model::THUMBNAIL_DIR)) {
throw new Exception("Media error : Cant create /media/thumbnail folder");
}