diff options
author | Ralph Amissah <ralph@amissah.com> | 2014-09-01 23:11:39 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2014-09-01 23:11:41 -0400 |
commit | 81c7c3ff5b33e3b57d91acc3eb6c2739e0008e17 (patch) | |
tree | d4753940c71d5246286351a4acf5c49dae962b41 /lib | |
parent | v5 v6: version & changelog (& rakefile) (diff) |
v5 v6: cgi_sqlite, expansion of variable (default db name), double quotes, fix
Diffstat (limited to 'lib')
-rw-r--r-- | lib/sisu/v5/cgi_sqlite.rb | 2 | ||||
-rw-r--r-- | lib/sisu/v6/cgi_sqlite.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/sisu/v5/cgi_sqlite.rb b/lib/sisu/v5/cgi_sqlite.rb index 4644dbc0..9cd91676 100644 --- a/lib/sisu/v5/cgi_sqlite.rb +++ b/lib/sisu/v5/cgi_sqlite.rb @@ -112,7 +112,7 @@ module SiSU_CGI_SQLite #% database building doc serve.each do |x| f3 << %{ when /#{Db[:name_prefix]}#{x}/ then "#{@env.path.webserv}/#{x}/\#{db_name}"\n} end - f3 << %{ else '#{@env.path.webserv}/#{serve[0]}/\#{db_name}'\n end\n} + f3 << %{ else "#{@env.path.webserv}/#{serve[0]}/\#{db_name}"\n end\n} if FileTest.writable?('.') output=File.open(@cgi_file_name,'w') output << header0 << header1 << header_desc << header2 << f1 << buttons1 << buttons2 << search_request << search_statement << search_statement_common << search_query1 << @common.pages << search_query2 << @common.tail << @common.main1 << f2 << f3 << dbi_connect << @common.main2 << @common.dir_structure << @common.main3 diff --git a/lib/sisu/v6/cgi_sqlite.rb b/lib/sisu/v6/cgi_sqlite.rb index 722d9033..8559b7a8 100644 --- a/lib/sisu/v6/cgi_sqlite.rb +++ b/lib/sisu/v6/cgi_sqlite.rb @@ -112,7 +112,7 @@ module SiSU_CGI_SQLite #% database building doc serve.each do |x| f3 << %{ when /#{Db[:name_prefix]}#{x}/ then "#{@env.path.webserv}/#{x}/\#{db_name}"\n} end - f3 << %{ else '#{@env.path.webserv}/#{serve[0]}/\#{db_name}'\n end\n} + f3 << %{ else "#{@env.path.webserv}/#{serve[0]}/\#{db_name}"\n end\n} if FileTest.writable?('.') output=File.open(@cgi_file_name,'w') output << header0 << header1 << header_desc << header2 << f1 << buttons1 << buttons2 << search_request << search_statement << search_statement_common << search_query1 << @common.pages << search_query2 << @common.tail << @common.main1 << f2 << f3 << dbi_connect << @common.main2 << @common.dir_structure << @common.main3 |