Fix for removed snippet from ckan core