Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changed EXIF write/update mechanism

  • Loading branch information...
commit 2f0c6d451d8854bbe794463c2dc0c71d0d894db2 1 parent 6b29044
@cwsoft authored
View
2  cwsoft-foldergallery/code/cwsFolderGalleryImageExtension.php
@@ -60,7 +60,7 @@ public function ExifData($field='DateTimeOriginal') {
public static function writeExifDates($parentId=null) {
// fetch all requested image objects
if (is_numeric($parentId)) {
- $images = Image::get()->filter('ParentID', $parentID);
+ $images = Image::get()->filter('ParentID', $parentId);
} else {
$images = Image::get();
}
View
2  cwsoft-foldergallery/code/cwsFolderGalleryPage.php
@@ -59,7 +59,7 @@ function getCMSFields() {
*/
function onBeforeWrite() {
parent::onBeforeWrite();
- cwsFolderGalleryImageExtension::writeExifDates();
+ cwsFolderGalleryImageExtension::writeExifDates($this->AlbumFolderID);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.