From 451383433d842f4a6734573a37aaf9098dd245c7 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 18 Apr 2011 08:52:02 +0200 Subject: complete change of configuration --- example.cgi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'example.cgi') diff --git a/example.cgi b/example.cgi index d2bf9cd..2122bb7 100755 --- a/example.cgi +++ b/example.cgi @@ -28,7 +28,7 @@ $d = Dudle.new if $cgi.include?("poll") poll = nil - EXAMPLES.each{|p| + $conf.examples.each{|p| poll = p if $cgi["poll"] == p[:url] } @@ -53,20 +53,20 @@ if $cgi.include?("poll") $d.html.header["status"] = "REDIRECT" $d.html.header["Cache-Control"] = "no-cache" - $d.html.header["Location"] = SITEURL + targeturl + $d.html.header["Location"] = $conf.siteurl + targeturl else - if defined?(EXAMPLES) + unless $conf.examples.empty? $d << "

" + _("Examples") + "

" $d << _("If you want to play with the application, you may want to take a look at these example polls:") $d << "
" end - $d << EXAMPLENOTICE + $d << $conf.examplenotice end -- cgit v1.2.3