diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-02-07 10:56:56 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-02-07 10:56:56 +0100 |
commit | a5f5d53881645d42d27ea9b46d10a2442676e271 (patch) | |
tree | 25bdee516695c15534a53f06e988d98f19895ada /not_found.cgi | |
parent | d0ca62d9347ceee09ebff2fb13b333a45bcab271 (diff) |
Attempt to fix relative path bug with error pages
Diffstat (limited to 'not_found.cgi')
-rwxr-xr-x | not_found.cgi | 7 |
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") |