Permalink
Browse files

Merge pull request #116 from shadlaws/fix_1983

#1983: Remove item keys changed for/by graphics::generate from significant changes list.
  • Loading branch information...
2 parents a15d062 + fd8b8de commit 60c37726cea095f646d46f756cc846202af3214b @bharat bharat committed Jan 31, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 modules/gallery/models/item.php
@@ -318,9 +318,11 @@ public function __get($column) {
*/
public function save() {
$significant_changes = $this->changed;
- unset($significant_changes["view_count"]);
- unset($significant_changes["relative_url_cache"]);
- unset($significant_changes["relative_path_cache"]);
+ foreach (array("view_count", "relative_url_cache", "relative_path_cache",
+ "resize_width", "resize_height", "resize_dirty",
+ "thumb_width", "thumb_height", "thumb_dirty") as $key) {
+ unset($significant_changes[$key]);
+ }
if ((!empty($this->changed) && $significant_changes) || isset($this->data_file)) {
$this->updated = time();

0 comments on commit 60c3772

Please sign in to comment.