From ef18c5f848a5e4d1239bdc1d89e0cc9f75a10512 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 8 Aug 2019 23:02:03 +0200 Subject: feature : terminal style option + bug fix : externallinkblank missing underscore --- app/class/controllerart.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'app/class/controllerart.php') diff --git a/app/class/controllerart.php b/app/class/controllerart.php index f8155ea..027fc19 100644 --- a/app/class/controllerart.php +++ b/app/class/controllerart.php @@ -248,14 +248,21 @@ class Controllerart extends Controller { $art = $this->artmanager->getfromfile(); + if(!empty($_POST['id'])) { $art->setid(idclean($_POST['id'])); } - + if($_POST['datecreation']) { $art->setdatecreation($this->now); } - + + if($_POST['author']) { + $art->setauthors([$this->user->id()]); + } + + $art->setdaterender($art->datecreation('date')); + if($art !== false) { if($_POST['erase'] || $this->artmanager->get($art) === false) { $this->artmanager->add($art); -- cgit v1.2.3