From 9250df311477fbb98e039afe107e7367d1d08f9b Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 29 Dec 2012 18:00:14 +0100 Subject: [PATCH] Gallery2: Functions for constructing meta-data file names --- gal2/UCW/Gallery.pm | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gal2/UCW/Gallery.pm b/gal2/UCW/Gallery.pm index 9e2571a..ee84087 100644 --- a/gal2/UCW/Gallery.pm +++ b/gal2/UCW/Gallery.pm @@ -148,4 +148,15 @@ sub read_meta($) { return $meta; } +# FIXME: Use everywhere +sub photo_meta_name($) { + my ($self) = @_; + return File::Spec->catfile($self->get('PhotoDir'), 'gallery.meta'); +} + +sub cache_meta_name($) { + my ($self) = @_; + return File::Spec->catfile($self->get('CacheDir'), 'cache.meta'); +} + 1; -- 2.39.2