Skip to content
Permalink
Browse files
Fix #277 -- make the ical plugin compatible
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed May 31, 2018
1 parent 37383ad commit c2ec9913ec5544b003c280b21484447e32568c9f
Showing with 2 additions and 2 deletions.
  1. +2 −2 v7/ical/ical.py
@@ -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)

0 comments on commit c2ec991

Please sign in to comment.