diff options
Diffstat (limited to 'error.cgi')
-rwxr-xr-x | error.cgi | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -47,10 +47,10 @@ if File.exists?($conf.errorlog) end - errormessagebody = _("Hi!\n\nI found a bug in your application at %{urlofsite}.\nI did the following:\n\n<please describe what you did>\n<e.g., I wanted to sent a comment to the poll.>\n\nI am using <please state your browser and operating system>\n%{errormessage}\nYours,\n") % {:errormessage => errormessage, :urlofsite => $conf.siteurl} - subject = _("Bug in dudle") + errormessagebody = _("Hi!\n\nI found a bug in your application at %{urlofsite}.\nI did the following:\n\n<please describe what you did>\n<e.g., I wanted to post a comment to the poll.>\n\nI am using <please state your browser and operating system>\n%{errormessage}\nSincerely,\n") % {:errormessage => errormessage, :urlofsite => $conf.siteurl} + subject = _("Bug in Dudle") - $d << _("An error occurred while executing dudle.<br/>Please send an error report, including your browser, operating system, and what you did to %{admin}.") % {:admin => "<a href='mailto:#{$conf.bugreportmail}?subject=#{urlescape(subject)}&body=#{urlescape(errormessagebody)}'>#{$conf.bugreportmail}</a>"} + $d << _("An error occurred while executing Dudle.<br/>Please send an error report, including your browser, operating system, and what you did to %{admin}.") % {:admin => "<a href='mailto:#{$conf.bugreportmail}?subject=#{urlescape(subject)}&body=#{urlescape(errormessagebody)}'>#{$conf.bugreportmail}</a>"} if (errorstr) errorheadstr = _("Please include the following as well:") @@ -76,7 +76,7 @@ if $conf.auto_send_report && !known f << errorstr } - %x{mail -s "Bug in dudle" #{$conf.bugreportmail} < #{tmpfile}} + %x{mail -s "Bug in Dudle" #{$conf.bugreportmail} < #{tmpfile}} File.delete(tmpfile) |