From b4c5790ef82a4cc248d40c8403e795089d06ab08 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 14 Nov 2018 10:04:58 +0100 Subject: article-render --- app/class/controllerart.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/class/controllerart.php') diff --git a/app/class/controllerart.php b/app/class/controllerart.php index e385201..b990237 100644 --- a/app/class/controllerart.php +++ b/app/class/controllerart.php @@ -6,6 +6,7 @@ class Controllerart extends Controller protected $art; protected $artmanager; protected $renderengine; + protected $fontmanager; public function __construct($router) { @@ -13,6 +14,7 @@ class Controllerart extends Controller $this->artmanager = new Modelart(); $this->renderengine = new Modelrender($router); + $this->fontmanager = new Modelfont(); } @@ -97,8 +99,7 @@ class Controllerart extends Controller $showleftpanel = false; $showrightpanel = false; } - $fontmanager = new Modelfont; - $fonts = $fontmanager->list(); + $fonts = []; $this->showtemplate('edit', ['art' => $this->art, 'artexist' => true, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel, 'showrightpanel' => $showrightpanel, 'fonts' => $fonts]); } else { @@ -166,6 +167,11 @@ class Controllerart extends Controller } + + public function artdirect($id) + { + $this->routedirect('artread/', ['art' => idclean($id)]); + } } -- cgit v1.2.3