Skip to content

Commit

Permalink
[#2375] legacy templates for stats supported
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Aug 1, 2012
1 parent c37903f commit 1aaf4be
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ckanext/stats/plugin.py
Expand Up @@ -19,5 +19,8 @@ def after_map(self, map):
return map

def update_config(self, config):
p.toolkit.add_template_directory(config, 'templates')
templates = 'templates'
if p.toolkit.asbool(config.get('ckan.legacy_templates', False)):
templates = 'templates_legacy'
p.toolkit.add_template_directory(config, templates)
p.toolkit.add_public_directory(config, 'public')

0 comments on commit 1aaf4be

Please sign in to comment.