From d7288d33e63a9b03408180002dde39d05134689d Mon Sep 17 00:00:00 2001 From: Tim Almdal Date: Mon, 24 Nov 2008 05:55:29 +0000 Subject: Remove the has_many_and_belongs_to_many relations from the item model --- core/controllers/welcome.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/controllers') 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"); -- cgit v1.2.3