Permalink
Browse files

oops

  • Loading branch information...
1 parent 1535de6 commit 8608905b960136ded8f76e4bcc4605e9566e820e @ralsina ralsina committed May 12, 2015
Showing with 3 additions and 2 deletions.
  1. +3 −2 nikola/plugins/task/galleries.py
@@ -102,8 +102,9 @@ def set_site(self, site):
self.find_galleries()
# Create self.gallery_links
self.create_galleries_paths()
- site.inject_dependency('posts', 'render_galleries')
- return super(Galleries, self).set_site(site)
+ r = super(Galleries, self).set_site(site)
+ self.inject_dependency('posts', 'render_galleries')
+ return r
def _find_gallery_path(self, name):
# The system using self.proper_gallery_links and self.improper_gallery_links

0 comments on commit 8608905

Please sign in to comment.