aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/sysenv.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-08-21 21:34:41 +0100
committerRalph Amissah <ralph@amissah.com>2007-08-21 21:34:41 +0100
commit7ef4f9a39e2aeffd9731ac0b68caca4c1b8cf03f (patch)
treefda200da69959ea24f146937bfd9fee843f368c2 /lib/sisu/v0/sysenv.rb
parent0.56.3 md5s (diff)
small fixes to manifest and html_scroll, and adjustment to html navigation band use in concordance and manifest
* manifest * use relative link by default * in absence of configured url_root (http://) use info on location on local filesystem (file://) * html outputs, navigation band/banner adjustment, in concordance and manifest * html scroll, fix to document information link in table of contents
Diffstat (limited to 'lib/sisu/v0/sysenv.rb')
-rw-r--r--lib/sisu/v0/sysenv.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb
index 10ec5e33..9052ac91 100644
--- a/lib/sisu/v0/sysenv.rb
+++ b/lib/sisu/v0/sysenv.rb
@@ -1275,7 +1275,8 @@ module SiSU_Env
end
def root
if defined? @rc['webserv']['url_root'] and @rc['webserv']['url_root'] =~/http:\/\//; "#{@rc['webserv']['url_root']}/#@stub_pwd"
- else "http://localhost/#@stub_pwd"
+ elsif defined? @rc['webserv']['url_root'] and @rc['webserv']['url_root'] =~/localhost/; "http://localhost/#@stub_pwd"
+ else "file://#{path.output}"
end
end
def remote