From e8566a57cf1b9cc2eed10429f27840d17da945ef Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sun, 23 Dec 2018 18:20:57 +0100 Subject: feature users --- app/class/controllerart.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'app/class/controllerart.php') diff --git a/app/class/controllerart.php b/app/class/controllerart.php index 7bc8c23..c097df4 100644 --- a/app/class/controllerart.php +++ b/app/class/controllerart.php @@ -24,8 +24,9 @@ class Controllerart extends Controller $cleanid = idclean($id); if ($cleanid !== $id) { $this->routedirect($route, ['art' => $cleanid]); + } else { + $this->art = new Art2(['id' => $cleanid]); } - $this->art = new Art2(['id' => $cleanid]); } public function importart() @@ -33,7 +34,6 @@ class Controllerart extends Controller $art = $this->artmanager->get($this->art); if ($art !== false) { $this->art = $art; - //$this->art->autotaglistupdate($this->artmanager->taglist($this->artmanager->getlister(['id', 'title', 'description', 'tag']), $this->art->autotaglist())); return true; } else { return false; @@ -149,7 +149,6 @@ class Controllerart extends Controller { $this->setart($id, 'artlog'); $this->importart(); - var_dump($this->art); } public function add($id) -- cgit v1.2.3