summaryrefslogtreecommitdiff
path: root/modules/exif/helpers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2011-04-22 07:55:34 -0700
committerBharat Mediratta <bharat@menalto.com>2011-04-22 07:55:34 -0700
commit99fd65ff02d17cbb3ec936b4bdbf2a8c6b0b73e3 (patch)
treed144051f3420378a63189bb5bf7ab29c014a57ed /modules/exif/helpers
parentb385d458b095bf40571963bd3402b6efef89e069 (diff)
Catch the item_updated_data_file() event and rescan. Fixes #1679.
Diffstat (limited to 'modules/exif/helpers')
-rw-r--r--modules/exif/helpers/exif_event.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/exif/helpers/exif_event.php b/modules/exif/helpers/exif_event.php
index e594c765..72e88041 100644
--- a/modules/exif/helpers/exif_event.php
+++ b/modules/exif/helpers/exif_event.php
@@ -24,6 +24,12 @@ class exif_event_Core {
}
}
+ static function item_updated_data_file($item) {
+ if (!$item->is_album()) {
+ exif::extract($item);
+ }
+ }
+
static function item_deleted($item) {
db::build()
->delete("exif_records")