Skip to content

Commit

Permalink
Petite modif, pour tenter d'être compatible avec le --base-url
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgu74 committed Jun 28, 2011
1 parent 5e3971f commit bbdef98
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main.opa
Expand Up @@ -9,8 +9,6 @@ import OpaCms.admin
import stdlib.core.web.server
import stdlib.core

base_url = Server_private.base_url

render_page(url : string) =
status = User.get_status()
admin = match status with
Expand All @@ -23,7 +21,7 @@ render_page(url : string) =
title = Page_data.get(Page_data.mk_ref(url)).title
// There is two css file (the first is the general css file (static))
// The second is created dynamically with the database
Resource.styled_page("{Config.get().site_name} - {title}", ["/_css_{url}.css"] ,body)
Resource.styled_page("{Config.get().site_name} - {title}", ["_css_{url}.css"] ,body)

urls : Parser.general_parser(http_request -> resource) =
parser
Expand Down

0 comments on commit bbdef98

Please sign in to comment.