Browse Source

Fix gallery plugin crash. Use correct loop variable name.

Bjørn Harald 9 years ago
parent
commit
54bedd6e07
1 changed files with 1 additions and 1 deletions
  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