aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerart.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-08-08 23:02:03 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-08-08 23:02:03 +0200
commitef18c5f848a5e4d1239bdc1d89e0cc9f75a10512 (patch)
tree23b154c9d71e15c75a201822318eaa66dcefc99e /app/class/controllerart.php
parente75e54d23d262940acd4c7df2a8cc7b7ab1751d5 (diff)
downloadwcms-ef18c5f848a5e4d1239bdc1d89e0cc9f75a10512.tar.gz
wcms-ef18c5f848a5e4d1239bdc1d89e0cc9f75a10512.zip
feature : terminal style option
+ bug fix : externallinkblank missing underscore
Diffstat (limited to 'app/class/controllerart.php')
-rw-r--r--app/class/controllerart.php11
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);