diff options
Diffstat (limited to 'app/class/controllerart.php')
-rw-r--r-- | app/class/controllerart.php | 11 |
1 files changed, 9 insertions, 2 deletions
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); |