diff --git a/mod/register.php b/mod/register.php index 9de7a0ca3..cc1c8dc7d 100644 --- a/mod/register.php +++ b/mod/register.php @@ -12,6 +12,7 @@ use Friendica\Core\PConfig; use Friendica\Core\System; use Friendica\Core\Worker; use Friendica\Model\User; +use Friendica\Module\Tos; use Friendica\Util\DateTimeFormat; require_once 'include/enotify.php'; @@ -252,6 +253,8 @@ function register_content(App $a) $tpl = $arr['template']; + $tos = new Tos(); + $o = replace_macros($tpl, [ '$oidhtml' => $oidhtml, '$invitations' => Config::get('system', 'invitation_only'), @@ -286,6 +289,8 @@ function register_content(App $a) '$importt' => L10n::t('Import your profile to this friendica instance'), '$showtoslink' => Config::get('system', 'tosdisplay'), '$tostext' => L10n::t('Terms of Service'), + '$showprivstatement' => Config::get('system', 'tosprivstatement'), + '$privstatement' => $tos->privblock, '$baseurl' => System::baseurl(), '$form_security_token' => get_form_security_token("register") ]); diff --git a/view/templates/register.tpl b/view/templates/register.tpl index eddc55132..6be4208d3 100644 --- a/view/templates/register.tpl +++ b/view/templates/register.tpl @@ -67,6 +67,12 @@ {{if $showtoslink}}
{{/if}} + {{if $showprivstatement}} +{{$privstatement[$i]}}
+ {{/for}} + {{/if}}{{$privstatement[$i]}}
+ {{/for}} + {{/if}}