Skip to content

Commit

Permalink
[#3656] Fix setting public path
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Jovanov authored and tino097 committed Dec 10, 2018
1 parent eb42425 commit 6067979
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ckan/logic/action/update.py
Expand Up @@ -1276,8 +1276,10 @@ def config_option_update(context, data_dict):
raise ValidationError(errors)

image_in_ckan = False
public_path = config.get('ckan.static_files', 'public')
ckan_images_path = os.path.abspath(os.path.join(os.path.dirname(__file__),
'..', '..', 'public', 'base', 'images'))
'..', '..', public_path, 'base',
'images'))

for key, value in data.iteritems():

Expand Down

0 comments on commit 6067979

Please sign in to comment.