diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 13:06:06 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-01-17 13:06:06 +0100 |
commit | b9ed7e0f55f082de429d5e7d545a5424de0052dd (patch) | |
tree | 31c98912f529bc731d2d6bd276001ba0889afcb4 /app | |
parent | c7e2b9cf64ab2db13e85470ae695b3b4c03fae79 (diff) |
Please CodeClimate
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/concerns/theming_concern.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/concerns/theming_concern.rb b/app/controllers/concerns/theming_concern.rb index 6622bcff6..1ee3256c0 100644 --- a/app/controllers/concerns/theming_concern.rb +++ b/app/controllers/concerns/theming_concern.rb @@ -46,8 +46,8 @@ module ThemingConcern if skin != 'default' && data['skin'][skin] pack_data[:skin] = skin if data['skin'][skin].include?(pack_name) - else # default skin - pack_data[:skin] = 'default' if data['pack'][pack_name]['stylesheet'] + elsif data['pack'][pack_name]['stylesheet'] + pack_data[:skin] = 'default' end pack_data |