forked from bofh/fetsite
app controler url parameter
This commit is contained in:
@@ -40,7 +40,7 @@
|
|||||||
|
|
||||||
|
|
||||||
def get_theme
|
def get_theme
|
||||||
if params[:theme]== "default" || params[:theme]=="2003"
|
if params[:theme]== "default" || params[:theme]=="2003" || params[:theme].nil?
|
||||||
params[:theme]="blue1"
|
params[:theme]="blue1"
|
||||||
end
|
end
|
||||||
if ThemesForRails.available_theme_names.include?(params[:theme])
|
if ThemesForRails.available_theme_names.include?(params[:theme])
|
||||||
@@ -51,6 +51,6 @@ else
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
def default_url_options
|
def default_url_options
|
||||||
{locale: I18n.locale, theme: (theme_name=="blue1") ? "default" : theme_name , ansicht: nil}
|
{locale: I18n.locale, theme: (theme_name=="blue1") ? nil : theme_name , ansicht: nil}
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user