aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerfont.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-22 08:21:09 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-22 08:21:09 +0100
commit7f94fccda33383f3a7be364cf0c316e7ed2c61bb (patch)
tree8cb230a437faccb49a822c9e3e0de44d18a16789 /app/class/controllerfont.php
parent920610490ea8c0e7ed4d8711eb5c7fc885239457 (diff)
downloadwcms-7f94fccda33383f3a7be364cf0c316e7ed2c61bb.tar.gz
wcms-7f94fccda33383f3a7be364cf0c316e7ed2c61bb.zip
bug fix: font dir check and create
Diffstat (limited to 'app/class/controllerfont.php')
-rw-r--r--app/class/controllerfont.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/class/controllerfont.php b/app/class/controllerfont.php
index 7a59cd6..8f87e3a 100644
--- a/app/class/controllerfont.php
+++ b/app/class/controllerfont.php
@@ -2,7 +2,9 @@
class Controllerfont extends Controller
{
-
+ /**
+ * @var Modelfont
+ */
protected $fontmanager;
public function __construct($router)
@@ -16,6 +18,8 @@ class Controllerfont extends Controller
{
if($this->user->iseditor()) {
+ $this->fontmanager->fontdircheck();
+
$fontlist = $this->fontmanager->getfontlist();
$this->showtemplate('font', ['fontlist' => $fontlist, 'fonttypes' => $this->fontmanager->getfonttypes(), 'fontfile' => Model::globalpath().'fonts.css']);