diff options
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/item.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/models/item.php b/core/models/item.php index 7086625f..e29f3245 100644 --- a/core/models/item.php +++ b/core/models/item.php @@ -215,10 +215,10 @@ class Item_Model extends ORM_MPTT { if (empty($this->relative_path)) { foreach ($this->parents() as $parent) { if ($parent->id > 1) { - $paths[] = $parent->path; + $paths[] = $parent->name; } } - $paths[] = $this->path; + $paths[] = $this->name; $this->relative_path = implode($paths, "/"); } return $this->relative_path; |