Set zip_gallery to TRUE only if archive exists

This commit is contained in:
Matthias Vogelgesang
2013-07-29 11:08:53 +02:00
parent 37921e6d49
commit 80b5ae5505

View File

@@ -144,6 +144,8 @@ class Writer(object):
if relpath != '.':
ctx['breadcumb'] = self.get_breadcumb(paths, relpath)
ctx['settings']['zip_gallery'] = not not paths[relpath]['medias']
for i in paths[relpath]['medias']:
media_ctx = {}
base, ext = os.path.splitext(i)