Skip to content

Commit

Permalink
[#2302] only update config on post and allow setting empty values
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 27, 2012
1 parent d1abd87 commit e1d0b1f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ckan/controllers/admin.py
Expand Up @@ -31,13 +31,11 @@ def __before__(self, action, **params):
def config(self):
app_globals = base.pylons_globals().get('g')
data = request.POST

style = data.get('style')
if style:
if data:
style = data.get('style')
app_globals.set_main_css(style)

site_title = data.get('title')
if site_title:
site_title = data.get('title')
app_globals.set_global('site_title', site_title)

styles = [('Default', '/base/css/main.css'),
Expand Down

0 comments on commit e1d0b1f

Please sign in to comment.