Explorar o código

Fix gallery plugin crash. Use correct loop variable name.

Bjørn Harald %!s(int64=10) %!d(string=hai) anos
pai
achega
54bedd6e07
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gallery/gallery.py

+ 1 - 1
gallery/gallery.py

@@ -16,7 +16,7 @@ def add_gallery_post(generator):
 
             if(os.path.isdir(articlegallerypath)):
                 for i in os.listdir(articlegallerypath):
-                    if not a.startswith('.') and os.path.isfile(os.path.join(os.path.join(gallerycontentpath, album), i)):
+                    if not i.startswith('.') and os.path.isfile(os.path.join(os.path.join(gallerycontentpath, album), i)):
                         galleryimages.append(i)
 
             article.album = album