Fixed issue where add_resource was used regardless of ckan version
This commit is contained in:
parent
f254d1afd7
commit
13a57cd455
|
@ -52,6 +52,7 @@ class GoogleAnalyticsPlugin(p.SingletonPlugin):
|
|||
self.track_events = converters.asbool(
|
||||
config.get('googleanalytics.track_events', False))
|
||||
|
||||
if not converters.asbool(config.get('ckan.legacy_templates', 'false')):
|
||||
p.toolkit.add_resource('fanstatic_library', 'ckanext-googleanalytics')
|
||||
|
||||
def update_config(self, config):
|
||||
|
|
Loading…
Reference in New Issue