diff options
Diffstat (limited to 'core/controllers')
-rw-r--r-- | core/controllers/welcome.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/controllers/welcome.php b/core/controllers/welcome.php index ce039ead..d4261cc4 100644 --- a/core/controllers/welcome.php +++ b/core/controllers/welcome.php @@ -235,11 +235,10 @@ class Welcome_Controller extends Template_Controller { $tag->name = $tags_list[$idx]; $tag->save(); } - if (!$item->add($tag)) { + if (!$tag->add($item, $tag)) { throw new Exception("@todo {$tag->name} WAS_NOT_ADDED_TO {$item->id}"); } } - $item->save(); } url::redirect("welcome"); |