Remove unused template variable in dfrn_req_confirm

- Replace killme() by exit() in mod/dfrn_request
This commit is contained in:
Hypolite Petovan 2018-12-24 23:14:09 -05:00
parent a8cbeab8a0
commit 4285f2f8bb
2 changed files with 2 additions and 4 deletions

View file

@ -512,8 +512,7 @@ function dfrn_request_content(App $a)
dfrn_request_post($a);
killme();
return; // NOTREACHED
exit();
}
$tpl = Renderer::getMarkupTemplate("dfrn_req_confirm.tpl");
@ -521,7 +520,6 @@ function dfrn_request_content(App $a)
'$dfrn_url' => $dfrn_url,
'$aes_allow' => (($aes_allow) ? '<input type="hidden" name="aes_allow" value="1" />' : "" ),
'$hidethem' => L10n::t('Hide this contact'),
'$hidechecked' => '',
'$confirm_key' => $confirm_key,
'$welcome' => L10n::t('Welcome home %s.', $a->user['username']),
'$please' => L10n::t('Please confirm your introduction/connection request to %s.', $dfrn_url),

View file

@ -13,7 +13,7 @@
{{$aes_allow}}
<label id="dfrn-request-homecoming-hide-label" for="dfrn-request-homecoming-hide">{{$hidethem}}</label>
<input type="checkbox" name="hidden-contact" value="1" {{if $hidechecked}}checked="checked" {{/if}} />
<input type="checkbox" name="hidden-contact" value="1" />
<div id="dfrn-request-homecoming-submit-wrapper" >