Преглед изворни кода

Fix gallery plugin crash. Use correct loop variable name.

Bjørn Harald пре 10 година
родитељ
комит
54bedd6e07
1 измењених фајлова са 1 додато и 1 уклоњено
  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