From 1d011471674ede030407c351abfbf2bfc93d8b7a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Fri, 18 Oct 2019 14:20:55 +0200 Subject: new page render system create html files in `/render` folder --- app/class/modelmedia.php | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'app/class/modelmedia.php') diff --git a/app/class/modelmedia.php b/app/class/modelmedia.php index c2c1b47..8cd0224 100644 --- a/app/class/modelmedia.php +++ b/app/class/modelmedia.php @@ -6,32 +6,6 @@ class Modelmedia extends Model const MEDIA_SORTBY = ['id', 'size', 'type']; - public function basedircheck() - { - if (!is_dir(Model::MEDIA_DIR)) { - return mkdir(Model::MEDIA_DIR); - } else { - return true; - } - } - - public function favicondircheck() - { - if (!is_dir(Model::FAVICON_DIR)) { - return mkdir(Model::FAVICON_DIR); - } else { - return true; - } - } - - public function thumbnaildircheck() - { - if (!is_dir(Model::THUMBNAIL_DIR)) { - return mkdir(Model::THUMBNAIL_DIR); - } else { - return true; - } - } /** * Get the Media Object -- cgit v1.2.3