From: Martin Mares Date: Sat, 29 Dec 2012 17:00:14 +0000 (+0100) Subject: Gallery2: Functions for constructing meta-data file names X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=9250df311477fbb98e039afe107e7367d1d08f9b;p=gallery.git Gallery2: Functions for constructing meta-data file names --- 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;