]> ruin.nu Git - ndwebbie.git/commitdiff
Use default template when smsconfirm is called accidently
authorMichael Andreen <harv@ruin.nu>
Sun, 27 Mar 2016 12:42:30 +0000 (14:42 +0200)
committerMichael Andreen <harv@ruin.nu>
Sun, 27 Mar 2016 12:42:30 +0000 (14:42 +0200)
lib/NDWeb/Controller/Root.pm

index 370264b06407a433782dfb980e9c0bd25f96a549..29a0cbcb1a665a029c2709cbc07d84609eedf465 100644 (file)
@@ -95,6 +95,8 @@ sub smsconfirm : Local {
        my ($self, $c) = @_;
        my $dbh = $c->model;
 
+       $c->stash(template => 'default.tt2');
+
        return unless $c->req->param('apiMsgId');
 
        my $sms = $dbh->prepare(q{
@@ -108,7 +110,6 @@ WHERE msgid = $1
                ,$c->req->param('charge')
                ,$c->req->param('timestamp'));
 
-       $c->stash(template => 'default.tt2');
 }