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

This commit is contained in:
Matthew K. Fu JuYuan committed 2012-05-16 17:16:48 +08:00
1 parent befd3bcdec
commit 0647698012
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