Skip to content
Browse files

[cleanup] resource_private: ws

  • Loading branch information...
1 parent 0c2b64a commit a982169fa0d0291f7583c4942d50a0d0430f4d78 @Aqua-Ye Aqua-Ye committed Dec 18, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 stdlib/core/web/resource/resource_private.opa
View
6 stdlib/core/web/resource/resource_private.opa
@@ -905,10 +905,10 @@ export_resource(external_css_files: list(string),
"This page is exported from a context that doesn't have a valid client thread context. Replacing by random value {result}")
result
page_lang = ServerI18n.page_lang() // TODO by customizer
- page_info = "var page_server = {num_page};var page_lang = \"{page_lang}\";"
- js_base_url = Option.switch(base -> "var base_url = \"{base}\";", "", base_url)
+ page_info = "var page_server = {num_page}; var page_lang = \"{page_lang}\";"
+ js_base_url = Option.switch(base -> " var base_url = \"{base}\";", "", base_url)
- global_variable = {content_unsafe="<script type=\"text/javascript\">{page_info} {js_base_url}</script>"} : xhtml
+ global_variable = {content_unsafe="<script type=\"text/javascript\">{page_info}{js_base_url}</script>"} : xhtml
{body = ready_body
head = head_without_id
mime_type= mime_type} = cache_for_xhtml(

0 comments on commit a982169

Please sign in to comment.
Something went wrong with that request. Please try again.