From: Christian Vogeley Date: Tue, 1 Jan 2013 20:05:24 +0000 (+0100) Subject: Fix registration form X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cde9b6370da1735fffab2fe5933334c2ac3320e9;p=friendica.git Fix registration form --- diff --git a/mod/register.php b/mod/register.php index 208f97bcb6..faee66c267 100644 --- a/mod/register.php +++ b/mod/register.php @@ -214,7 +214,8 @@ function register_content(&$a) { $oidlabel = ''; } else { - $oidhtml = ''; + $oidhtml = ''; + $oidhtml_old = ''; $fillwith = t("You may \x28optionally\x29 fill in this form via OpenID by supplying your OpenID and clicking 'Register'."); $fillext = t('If you are not familiar with OpenID, please leave that field blank and fill in the rest of the items.'); $oidlabel = t("Your OpenID \x28optional\x29: "); @@ -252,6 +253,7 @@ function register_content(&$a) { $o = replace_macros($o, array( '$oidhtml' => $oidhtml, + '$oidhtml_old' => $oidhtml_old, '$invitations' => get_config('system','invitation_only'), '$invite_desc' => t('Membership on this site is by invitation only.'), '$invite_label' => t('Your invitation ID: '), diff --git a/view/register.tpl b/view/register.tpl index 7cf11881ad..ed96f969b8 100644 --- a/view/register.tpl +++ b/view/register.tpl @@ -12,7 +12,7 @@

$fillext

- $oidhtml + $oidhtml_old
diff --git a/view/smarty3/register.tpl b/view/smarty3/register.tpl index bdec2ffb4f..899a9a25a5 100644 --- a/view/smarty3/register.tpl +++ b/view/smarty3/register.tpl @@ -12,7 +12,7 @@

{{$fillext}}

- {{$oidhtml}} + {{$oidhtml|sprintf:$oidlabel:$openid}}
@@ -41,7 +41,7 @@
-

{{$nickdesc}}

+

{{$nickdesc|replace:'$sitename':$sitename}}

diff --git a/view/theme/frost-mobile/register.tpl b/view/theme/frost-mobile/register.tpl index cbc58a7846..9844049b19 100644 --- a/view/theme/frost-mobile/register.tpl +++ b/view/theme/frost-mobile/register.tpl @@ -12,7 +12,7 @@
- $oidhtml + $oidhtml_old
diff --git a/view/theme/frost-mobile/smarty3/register.tpl b/view/theme/frost-mobile/smarty3/register.tpl index 62b147a8ee..f73cd258bb 100644 --- a/view/theme/frost-mobile/smarty3/register.tpl +++ b/view/theme/frost-mobile/smarty3/register.tpl @@ -12,7 +12,7 @@
- {{$oidhtml}} + {{$oidhtml|sprintf:$oidlabel:$openid}}
@@ -54,7 +54,7 @@
-

{{$nickdesc}}

+

{{$nickdesc|replace:'$sitename':$sitename}}

{{$publish}} diff --git a/view/theme/frost/register.tpl b/view/theme/frost/register.tpl index 89dcffdf20..7df552e3fd 100644 --- a/view/theme/frost/register.tpl +++ b/view/theme/frost/register.tpl @@ -12,7 +12,7 @@
- $oidhtml + $oidhtml_old
diff --git a/view/theme/frost/smarty3/register.tpl b/view/theme/frost/smarty3/register.tpl index 6b8e85a03c..198223918d 100644 --- a/view/theme/frost/smarty3/register.tpl +++ b/view/theme/frost/smarty3/register.tpl @@ -12,7 +12,7 @@
- {{$oidhtml}} + {{$oidhtml|sprintf:$oidlabel:$openid}}
@@ -55,7 +55,7 @@
-

{{$nickdesc}}

+

{{$nickdesc|replace:'$sitename':$sitename}}

{{$publish}}