From 56c972577b9cb4c4e435fe3025752d1cd9b26d56 Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Fri, 26 Sep 2008 15:17:30 +0000 Subject: [PATCH] fixing hard coded images/scripts, so that the site works better when deploy as a sub directory using passenger phusion. --- app/views/layouts/site.rhtml | 2 +- public/javascripts/map.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/site.rhtml b/app/views/layouts/site.rhtml index 7aa2db7b9..4437fa879 100644 --- a/app/views/layouts/site.rhtml +++ b/app/views/layouts/site.rhtml @@ -106,7 +106,7 @@ - + <%= link_to (image_tag "cc_button.png", :alt => "CC by-sa 2.0", :border => "0"), "http://creativecommons.org/licenses/by-sa/2.0/" %> diff --git a/public/javascripts/map.js b/public/javascripts/map.js index cd130c784..3e6d687b0 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -13,7 +13,7 @@ var nonamekeys = { }; OpenLayers._getScriptLocation = function () { - return "/openlayers/"; + return "openlayers/"; } function createMap(divName, options) { -- 2.43.2