diff options
Diffstat (limited to 'app/class/modelfont.php')
-rw-r--r-- | app/class/modelfont.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/app/class/modelfont.php b/app/class/modelfont.php index 213da11..8e7645e 100644 --- a/app/class/modelfont.php +++ b/app/class/modelfont.php @@ -4,7 +4,15 @@ class Modelfont extends Model { 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() { |