aboutsummaryrefslogtreecommitdiff
path: root/not_found.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'not_found.cgi')
-rwxr-xr-xnot_found.cgi7
1 files changed, 5 insertions, 2 deletions
diff --git a/not_found.cgi b/not_found.cgi
index 577769f..425bf65 100755
--- a/not_found.cgi
+++ b/not_found.cgi
@@ -20,8 +20,11 @@
############################################################################
require "dudle"
-$d = Dudle.new(:hide_lang_chooser => true)
-
+if File.exists?(Dir.pwd + File.dirname(ENV["REDIRECT_URL"]))
+ $d = Dudle.new(:hide_lang_chooser => true)
+else
+ $d = Dudle.new(:hide_lang_chooser => true, :relative_dir => "../")
+end
title = _("Poll Not Found")