]> git.mxchange.org Git - friendica.git/commitdiff
Remove unused template variable in dfrn_req_confirm
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 25 Dec 2018 04:14:09 +0000 (23:14 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 25 Dec 2018 04:14:09 +0000 (23:14 -0500)
- Replace killme() by exit() in mod/dfrn_request

mod/dfrn_request.php
view/templates/dfrn_req_confirm.tpl

index 16a2da55607cca309f96959d8134ceefa1658e29..0e24accc013855f307e70b8c5ddcf1249ad58aa7 100644 (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),
index accfd4f83f162bcf5054a3bd1c73d3fd64351e49..1c89ece9b7a7deb70fa62170cbe04314b18fd16a 100644 (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" >