diff options
Diffstat (limited to 'app/class/controllerfont.php')
-rw-r--r-- | app/class/controllerfont.php | 6 |
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']); |