aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerart.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/controllerart.php')
-rw-r--r--app/class/controllerart.php10
1 files changed, 8 insertions, 2 deletions
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)]);
+ }
}