From e44ff9bb6054f83d266a28f4e5418ff9b98a5b80 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Wed, 5 Nov 2008 07:47:19 +0000 Subject: ORM_MPTT::parents() should not include the node itself. --- core/models/item.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/models') diff --git a/core/models/item.php b/core/models/item.php index 265a9219..5ab3935c 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -35,10 +35,8 @@ class Item_Model extends ORM_MPTT { $paths[] = $parent->name; } } + $paths[] = $this->name; $path = implode($paths, "/"); - if (!$this->saved) { - $path .= $this->name; - } if ($tag) { $pi = pathinfo($path); -- cgit v1.2.3