diff options
author | shadlaws <shad@shadlaws.com> | 2013-07-08 09:39:54 +0200 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2013-07-08 09:39:54 +0200 |
commit | d0aef95a657c9e50fe255ca912bb01b7c3b74c2e (patch) | |
tree | d0e555d3a1fb9a974e6fbb6306ee5c889054e591 /modules/gallery/helpers/item.php | |
parent | 188209446094b3521100d51587456053689080ce (diff) |
Move "item_moved" event later in the item update process. Fixes #2077.
Before, this was before the children's caches were cleared, so if the
"item_moved" set an album cover, it would fail with an invalid path. For the
same reason, we move it after the data file update, too. Lastly, get we get
rid of duplicated code in item::move() since the "item_moved" event already
does this.
Diffstat (limited to 'modules/gallery/helpers/item.php')
-rw-r--r-- | modules/gallery/helpers/item.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/modules/gallery/helpers/item.php b/modules/gallery/helpers/item.php index bbbc81d6..1330482f 100644 --- a/modules/gallery/helpers/item.php +++ b/modules/gallery/helpers/item.php @@ -63,11 +63,6 @@ class item_Core { break; } } - - // If the target has no cover item, make this it. - if ($target->album_cover_item_id == null) { - item::make_album_cover($source); - } } static function make_album_cover($item) { |