Fix common packs when other pack also there

lolsob-rspec
kibigo! 2017-12-06 15:34:19 -08:00
parent 6a5ba9d129
commit 41f9a4d4e4
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ class ApplicationController < ActionController::Base
def pack(data, pack_name, skin = 'default') def pack(data, pack_name, skin = 'default')
return nil unless pack?(data, pack_name) return nil unless pack?(data, pack_name)
pack_data = { pack_data = {
common: pack_name == 'common' ? nil : resolve_pack(data['name'] ? Themes.instance.flavour(current_flavour) : Themes.instance.core, 'common'), common: pack_name == 'common' ? nil : resolve_pack(data['name'] ? Themes.instance.flavour(current_flavour) : Themes.instance.core, 'common', skin),
flavour: data['name'], flavour: data['name'],
pack: pack_name, pack: pack_name,
preload: nil, preload: nil,