From 29cd702e4776811a96c3c088bd9ba8fc6f9176f0 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 14 Aug 2013 15:57:58 -0500 Subject: [PATCH] Fix notifications, which I broke. This commit sponsored by Denver Gingerich. Thank you! --- mediagoblin/tools/template.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mediagoblin/tools/template.py b/mediagoblin/tools/template.py index 3cc058c9..fa290611 100644 --- a/mediagoblin/tools/template.py +++ b/mediagoblin/tools/template.py @@ -94,6 +94,8 @@ def get_jinja_env(template_loader, locale): ## but it needs to add stuff to the context. This is THE WRONG WAY TO DO IT from mediagoblin import notifications template_env.globals['get_notifications'] = notifications.get_notifications + template_env.globals[ + 'get_notification_count'] = notifications.get_notification_count template_env.globals[ 'get_comment_subscription'] = notifications.get_comment_subscription -- 2.25.1