diff options
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Alert.pm | 3 | ||||
-rw-r--r-- | templates/web/default/tokens/confirm_alert.html (renamed from templates/web/default/alert/confirm.html) | 0 |
2 files changed, 1 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Alert.pm b/perllib/FixMyStreet/App/Controller/Alert.pm index b836f5a79..db9602ff5 100644 --- a/perllib/FixMyStreet/App/Controller/Alert.pm +++ b/perllib/FixMyStreet/App/Controller/Alert.pm @@ -142,7 +142,7 @@ sub subscribe_email : Private { $c->forward('create_alert'); if ( $c->stash->{alert}->confirmed ) { $c->stash->{confirm_type} = 'created'; - $c->stash->{template} = 'alert/confirm.html'; + $c->stash->{template} = 'tokens/confirm_alert.html'; } else { $c->forward('send_confirmation_email'); } @@ -166,7 +166,6 @@ sub confirm : Private { my ( $self, $c ) = @_; my $alert = $c->stash->{alert}; - $c->stash->{template} = 'alert/confirm.html'; if ( $c->stash->{confirm_type} eq 'subscribe' ) { $alert->confirm(); diff --git a/templates/web/default/alert/confirm.html b/templates/web/default/tokens/confirm_alert.html index 07694cbb6..07694cbb6 100644 --- a/templates/web/default/alert/confirm.html +++ b/templates/web/default/tokens/confirm_alert.html |