Skip to content

Commit

Permalink
[cleanup] resource_private: ws
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqua-Ye committed Dec 20, 2011
1 parent 0c2b64a commit a982169
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions stdlib/core/web/resource/resource_private.opa
Expand Up @@ -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(
Expand Down

0 comments on commit a982169

Please sign in to comment.