diff options
author | Chad Parry <github@chad.parry.org> | 2011-04-23 16:35:00 -0600 |
---|---|---|
committer | Chad Parry <github@chad.parry.org> | 2011-04-23 16:35:00 -0600 |
commit | 6702104f571413e4d57db3515b2070c48d3e9b55 (patch) | |
tree | 0921595b6388f5c3ab9ee3ddc6f7b36f10bcab41 | |
parent | 944cb72eea946f4c45a04b7e4c7c33929fa8b9f3 (diff) |
Resolve an infinite recursion that happens when the path caches are updated during saving.
-rw-r--r-- | modules/gallery/models/item.php | 1 |
1 files changed, 1 insertions, 0 deletions
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())); |