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/models/item.php | 7 ------- 1 file changed, 7 deletions(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index ba759c2b..4481a3a9 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -21,13 +21,6 @@ class Item_Model extends ORM_MPTT { protected $children = 'items'; protected $has_one = array("owner" => "user"); - function __construct($id=null) { - parent::__construct($id); - if (!in_array("tags", $this->has_and_belongs_to_many) && module::is_installed("tag")) { - $this->has_and_belongs_to_many[] = "tags"; - } - } - /** * Is this item an album? * @return true if it's an album -- cgit v1.2.3