Skip to content

Commit

Permalink
[#2302] css setting minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jul 25, 2012
1 parent 61fbf7f commit 65fc06c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ckan/lib/app_globals.py
Expand Up @@ -15,9 +15,11 @@ def _set_main_css(self, css_file):
must be of the form file.css '''
assert css_file.endswith('.css')
if config.debug and css_file == 'base/css/main.css':
self.main_css = 'base/css/main.debug.css'
new_css = 'base/css/main.debug.css'
else:
self.main_css = css_file
new_css = css_file
# FIXME we should check the css file exists
self.main_css = new_css
print 'using css file %s' % self.main_css

def __init__(self):
Expand Down

0 comments on commit 65fc06c

Please sign in to comment.