aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-11-27 12:03:06 +0100
committerGitHub <noreply@github.com>2017-11-27 12:03:06 +0100
commit1c712ce93ee8ee77b125ed7c389f9cbac09d0bb2 (patch)
tree60dc5f00cb8c193f5b458c6cd29ddd7988bc2547 /Zotlabs
parent1ad1b745128b7c5d7a90a825077c08f5c951c604 (diff)
parente327b8cb9aa7c31975ba26f8d7bc871b4da59df9 (diff)
downloadvolse-hubzilla-1c712ce93ee8ee77b125ed7c389f9cbac09d0bb2.tar.gz
volse-hubzilla-1c712ce93ee8ee77b125ed7c389f9cbac09d0bb2.tar.bz2
volse-hubzilla-1c712ce93ee8ee77b125ed7c389f9cbac09d0bb2.zip
Merge pull request #917 from anaqreon/minimum-age
Provide system config option for minimum registration age.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Module/Register.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php
index 95e3ca96f..deaee31bf 100644
--- a/Zotlabs/Module/Register.php
+++ b/Zotlabs/Module/Register.php
@@ -234,7 +234,11 @@ class Register extends \Zotlabs\Web\Controller {
if(get_config('system','no_age_restriction'))
$label_tos = sprintf( t('I accept the %s for this website'), $toslink);
else
- $label_tos = sprintf( t('I am over 13 years of age and accept the %s for this website'), $toslink);
+ $age = get_config('system','minimum_age');
+ if(!$age) {
+ $age = 13;
+ }
+ $label_tos = sprintf( t('I am over %s years of age and accept the %s for this website'), $age, $toslink);
$enable_tos = 1 - intval(get_config('system','no_termsofservice'));