diff --git a/ckanext/jsonpreview/plugin.py b/ckanext/jsonpreview/plugin.py index 842bac88633..09830949cd3 100644 --- a/ckanext/jsonpreview/plugin.py +++ b/ckanext/jsonpreview/plugin.py @@ -48,7 +48,7 @@ def setup_template_variables(self, context, data_dict): resource = data_dict['resource'] format_lower = resource['format'].lower() if format_lower in self.JSON_FORMATS and proxy and not resource['on_same_domain']: - base.c.resource['url'] = proxy.get_proxyfied_resource_url(data_dict) + base.c.resource['url'] = proxy.get_proxified_resource_url(data_dict) def preview_template(self, context, data_dict): return 'json.html' diff --git a/ckanext/pdfpreview/plugin.py b/ckanext/pdfpreview/plugin.py index 06cf3575dda..9be7a2a1a06 100644 --- a/ckanext/pdfpreview/plugin.py +++ b/ckanext/pdfpreview/plugin.py @@ -41,7 +41,7 @@ def can_preview(self, data_dict): def setup_template_variables(self, context, data_dict): if proxy and not data_dict['resource']['on_same_domain']: - base.c.resource['url'] = proxy.get_proxyfied_resource_url(data_dict) + base.c.resource['url'] = proxy.get_proxified_resource_url(data_dict) def preview_template(self, context, data_dict): return 'pdf.html' diff --git a/ckanext/resourceproxy/plugin.py b/ckanext/resourceproxy/plugin.py index a06d76f57d8..9f51769520a 100644 --- a/ckanext/resourceproxy/plugin.py +++ b/ckanext/resourceproxy/plugin.py @@ -8,7 +8,7 @@ log = getLogger(__name__) -def get_proxyfied_resource_url(data_dict): +def get_proxified_resource_url(data_dict): ''' :param data_dict: contains a resource and package dict :type data_dict: dictionary