diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-21 11:35:40 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-21 11:35:40 +0200 |
commit | 63202efc75a63ef30e58c12d602ea95a960a0976 (patch) | |
tree | 1c8bc40941ab8abdb18f68066d6ab64674f465d5 /app/class/modelrender.php | |
parent | 388bd7c3aff8b440febd83598003f96d5a746505 (diff) | |
download | wcms-63202efc75a63ef30e58c12d602ea95a960a0976.tar.gz wcms-63202efc75a63ef30e58c12d602ea95a960a0976.zip |
New feature : bookmarks
- public bookmarks stored in config.json
- personnal bookmarks stored in user data
Diffstat (limited to 'app/class/modelrender.php')
-rw-r--r-- | app/class/modelrender.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/class/modelrender.php b/app/class/modelrender.php index 3736888..f76a922 100644 --- a/app/class/modelrender.php +++ b/app/class/modelrender.php @@ -60,7 +60,12 @@ class Modelrender extends Modelart if (!empty($this->art->templatebody())) { $templateid = $this->art->templatebody(); $templateart = $this->get($templateid); - $body = $templateart->body(); + if($templateart !== false) { + $body = $templateart->body(); + } else { + $body = $this->art->body(); + $this->art->settemplatebody(''); + } } else { $body = $this->art->body(); } |