From a5f5d53881645d42d27ea9b46d10a2442676e271 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Mon, 7 Feb 2011 10:56:56 +0100 Subject: Attempt to fix relative path bug with error pages --- not_found.cgi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'not_found.cgi') 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") -- cgit v1.2.3