From 6702104f571413e4d57db3515b2070c48d3e9b55 Mon Sep 17 00:00:00 2001 From: Chad Parry Date: Sat, 23 Apr 2011 16:35:00 -0600 Subject: Resolve an infinite recursion that happens when the path caches are updated during saving. --- modules/gallery/models/item.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/gallery/models/item.php b/modules/gallery/models/item.php index aaca832a..a8bca15c 100644 --- a/modules/gallery/models/item.php +++ b/modules/gallery/models/item.php @@ -432,6 +432,7 @@ class Item_Model_Core extends ORM_MPTT { if ($original->parent_id != $this->parent_id || $original->name != $this->name) { // Move all of the items associated data files + $this->_build_relative_caches(); @rename($original->file_path(), $this->file_path()); if ($this->is_album()) { @rename(dirname($original->resize_path()), dirname($this->resize_path())); -- cgit v1.2.3