aboutsummaryrefslogtreecommitdiffstats
path: root/web/confirm.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'web/confirm.cgi')
-rwxr-xr-xweb/confirm.cgi6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/confirm.cgi b/web/confirm.cgi
index 6205d0605..39e91f5af 100755
--- a/web/confirm.cgi
+++ b/web/confirm.cgi
@@ -6,7 +6,7 @@
# Copyright (c) 2006 UK Citizens Online Democracy. All rights reserved.
# Email: matthew@mysociety.org. WWW: http://www.mysociety.org
#
-# $Id: confirm.cgi,v 1.38 2008-04-03 16:18:37 matthew Exp $
+# $Id: confirm.cgi,v 1.39 2008-05-13 16:00:14 matthew Exp $
use strict;
use Standard;
@@ -71,7 +71,7 @@ sub confirm_update {
where id=? and state='confirmed'", {}, $problem_id);
}
my $out = '';
- if ($creator_fixed > 0) {
+ if ($creator_fixed > 0 && $q->{site} ne 'emptyhomes') {
$out = ask_questionnaire($q->param('token'));
} else {
$out = $q->p(sprintf(_('You have successfully confirmed your update and you can now <a href="%s">view it on the site</a>.'), "/?id=$problem_id#update_$id"));
@@ -93,7 +93,7 @@ sub confirm_problem {
(my $domain = $email) =~ s/^.*\@//;
if (dbh()->selectrow_array('select email from abuse where lower(email)=? or lower(email)=?', {}, lc($email), lc($domain))) {
dbh()->do("update problem set state='hidden', lastupdate=ms_current_timestamp() where id=?", {}, $id);
- return $q->p('Sorry, there has been an error confirming your problem.');
+ return $q->p(_('Sorry, there has been an error confirming your problem.'));
} else {
dbh()->do("update problem set state='confirmed', confirmed=ms_current_timestamp(), lastupdate=ms_current_timestamp()
where id=? and state='unconfirmed'", {}, $id);