Skip to content
This repository was archived by the owner on Dec 22, 2022. It is now read-only.

Commit c835a48

Browse files
committed
fixing branding switching by adding a session variable
1 parent 2190add commit c835a48

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/controllers/catalog_controller.rb

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ def index
1313
super
1414
load_lookup_tables
1515
if params.include?('lib')
16-
$brand=params['lib']
17-
$brand.freeze
16+
session[:brand]=params['lib']
17+
$brand = session[:brand]
1818
else
19-
$brand="neos"
20-
$brand.freeze
19+
session[:brand]="neos"
20+
$brand = session[:brand]
2121
end
2222
$libraryname= @libraries[$brand]["name"]
2323
$homeurl = @libraries[$brand]["url"]

0 commit comments

Comments
 (0)