Merge branch 'master' of github.com:fetsite/fetsite
Conflicts: app/controllers/application_controller.rb
This commit is contained in:
@@ -40,15 +40,18 @@
|
||||
|
||||
|
||||
def get_theme
|
||||
if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil?
|
||||
params[:theme]="blue1"
|
||||
end
|
||||
if ThemesForRails.available_theme_names.include?(params[:theme])
|
||||
params[:theme]
|
||||
|
||||
# if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil?
|
||||
|
||||
# params[:theme]="blue1"
|
||||
# end
|
||||
# if ThemesForRails.available_theme_names.include?(params[:theme])
|
||||
# params[:theme]
|
||||
|
||||
|
||||
else
|
||||
#else
|
||||
"blue1"
|
||||
end
|
||||
#end
|
||||
end
|
||||
def default_url_options
|
||||
{locale: I18n.locale, theme: (theme_name=="blue1") ? nil : theme_name , ansicht: nil}
|
||||
|
||||
Reference in New Issue
Block a user