aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/models.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-11-09 18:10:44 +0100
committerKevin Chabowski <kevin@kch42.de>2011-11-09 18:10:44 +0100
commitfd206c2424cf1eb92dcbf7cab064942b9a904720 (patch)
tree3bc0318c13a42c6ef424f6901a7bd6902ff03ecb /ratatoeskr/sys/models.php
parent2d7eb3b97eb802f700965cc88a9b049687e8abf0 (diff)
downloadratatoeskr-cms-fd206c2424cf1eb92dcbf7cab064942b9a904720.tar.gz
ratatoeskr-cms-fd206c2424cf1eb92dcbf7cab064942b9a904720.tar.bz2
ratatoeskr-cms-fd206c2424cf1eb92dcbf7cab064942b9a904720.zip
Article::save also saves all $tags now.
Diffstat (limited to 'ratatoeskr/sys/models.php')
-rw-r--r--ratatoeskr/sys/models.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ratatoeskr/sys/models.php b/ratatoeskr/sys/models.php
index 627fa89..bfdc442 100644
--- a/ratatoeskr/sys/models.php
+++ b/ratatoeskr/sys/models.php
@@ -1911,6 +1911,8 @@ class Article
$this->title->save();
$this->text->save();
$this->excerpt->save();
+ foreach($this->tags as $tag)
+ $tag->save();
qdb("DELETE FROM `PREFIX_article_tag_relations` WHERE `article`= %d", $this->id);