From f17c8b940681250dacd0154033525658ad5c0a08 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 30 Jul 2007 13:43:37 +0100 Subject: replace unintended tabs with spaces --- lib/sisu/v0/sysenv.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/sisu/v0/sysenv.rb') diff --git a/lib/sisu/v0/sysenv.rb b/lib/sisu/v0/sysenv.rb index 91e03459..10ec5e33 100644 --- a/lib/sisu/v0/sysenv.rb +++ b/lib/sisu/v0/sysenv.rb @@ -1328,13 +1328,13 @@ module SiSU_Env "#{http}#{@rc['webserv_cgi']['host']}:#{webserv_port_cgi}/#@stub_pwd" else "#{http}#{@rc['webserv_cgi']['host']}/#@stub_pwd" end - else + else http=webserv_host_base=~/http:\/\// ? '' : 'http://' if webserv_port_cgi "#{http}#{webserv_host_base}:#{webserv_port_cgi}/#@stub_pwd" else "#{http}#{webserv_host_base}/#@stub_pwd" end - end + end end def webserv_base_cgi #web url for local webserv (localhost, or hostname) if defined? @rc['webserv_cgi']['host'] and not @rc['webserv_cgi']['host'].nil? @@ -1343,13 +1343,13 @@ module SiSU_Env "#{http}#{@rc['webserv_cgi']['host']}:#{webserv_port_cgi}" else "#{http}#{@rc['webserv_cgi']['host']}" end - else + else http=webserv_host_base=~/http:\/\// ? '' : 'http://' if webserv_port_cgi "#{http}#{webserv_host_base}:#{webserv_port_cgi}" else "#{http}#{webserv_host_base}" end - end + end end def webrick #must have a port #REMOVE #port=":#{webserv_port_cgi}" @@ -1362,7 +1362,7 @@ module SiSU_Env elsif webserv_host_base and not webserv_host_base.nil? "#{http}#{webserv_host_base}" else "#{http}localhost" - end + end end def webserv #web url for local webserv (localhost, or hostname) if path.webserv_dir and path.webserv =~ /#{path.webserv_dir}/ #revisit @@ -2451,7 +2451,7 @@ module SiSU_Env end end filename_homepage=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/index.html",'w') - filename_homepage_toc=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/toc.html",'w') + filename_homepage_toc=File.new("#{@env.path.webserv}/#{@env.path.stub_pwd}/toc.html",'w') filename_homepage << @vz_home.index filename_homepage_toc << @vz_home.index end -- cgit v1.2.3