From bd16dc7c6fc630a6b59ca3b041dde146ab50c72b Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 22 Apr 2020 22:13:28 +0200 Subject: colors refactor with exceptions --- app/class/Modelfont.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'app/class/Modelfont.php') diff --git a/app/class/Modelfont.php b/app/class/Modelfont.php index be8de81..3dac3ff 100644 --- a/app/class/Modelfont.php +++ b/app/class/Modelfont.php @@ -7,14 +7,7 @@ class Modelfont extends Model protected const FONT_TYPES = ['woff2', 'woff', 'otf', 'ttf', 'eot', 'svg']; - public function fontdircheck() - { - if (!is_dir(Model::FONT_DIR)) { - return mkdir(Model::FONT_DIR); - } else { - return true; - } - } + public function getfontlist() { -- cgit v1.2.3