fix ad_image size hints. fix orbit backend controller error when changing language.

This commit is contained in:
Matthew K. Fu JuYuan authored and Christophe Vilayphiou committed 2012-05-17 06:44:14 +08:00
1 parent a3acd865d7
commit 0f354b8ccc
5 files changed
+5 -1

No files matched your search

@@ -13,6 +13,7 @@ class OrbitBackendController< ApplicationController
def setup_vars
@app_title = request.fullpath.split('/')[2]
@app_title = request.fullpath.split('/')[1] if(@app_title == "back_end")
@app_title.gsub!(/[?].*/,'')
@module_app = ModuleApp.first(conditions: {:key => @app_title} )
end