Skip to content

Commit

Permalink
Fix #277 -- make the ical plugin compatible
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 31, 2018
1 parent 37383ad commit c2ec991
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/ical/ical.py
Expand Up @@ -34,9 +34,9 @@ class CalendarPlugin(ShortcodePlugin):

def set_site(self, site):
super(CalendarPlugin, self).set_site(site)
self.site.register_shortcode('calendar', self.render_calendar)
self.site.register_shortcode('calendar', self.handler)

def render_calendar(self, site=None, data=None, lang=None, file=None, template=None, post=None):
def handler(self, site=None, data=None, lang=None, file=None, template=None, post=None):
if not template:
template = 'calendar.tmpl'
deps = self.site.template_system.template_deps(template)
Expand Down

0 comments on commit c2ec991

Please sign in to comment.