Skip to content

Commit

Permalink
Don't re-register plugin helpers on flask_app, as it has been done on…
Browse files Browse the repository at this point in the history
… load_environment
  • Loading branch information
amercader committed Aug 21, 2018
1 parent 06b6a3d commit e93f365
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckan/config/middleware/flask_app.py
Expand Up @@ -308,7 +308,8 @@ def ckan_after_request(response):

def helper_functions():
u'''Make helper functions (`h`) available to Flask templates'''
helpers.load_plugin_helpers()
if not helpers.helper_functions:
helpers.load_plugin_helpers()
return dict(h=helpers.helper_functions)


Expand Down

0 comments on commit e93f365

Please sign in to comment.