summaryrefslogtreecommitdiff
path: root/core/models
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-05 07:47:19 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-05 07:47:19 +0000
commite44ff9bb6054f83d266a28f4e5418ff9b98a5b80 (patch)
tree2ff6b454d82542218ba0a160993ecc2466cbf958 /core/models
parentd21f3437e64fb67f306eaec40e778e77176796ff (diff)
ORM_MPTT::parents() should not include the node itself.
Diffstat (limited to 'core/models')
-rw-r--r--core/models/item.php4
1 files changed, 1 insertions, 3 deletions
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);