X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fregister.php;h=a8fa100c8f9c7109552405e9ea1369f187f8ee63;hb=574631c17a3e8289e363d74e69f70140ad035000;hp=d52b5a6e10945cf296d14904c6e58b69b620d118;hpb=12474e3c2eb21e4b5f9f6cd4b9d223f1f39bfe89;p=friendica.git diff --git a/mod/register.php b/mod/register.php index d52b5a6e10..a8fa100c8f 100644 --- a/mod/register.php +++ b/mod/register.php @@ -12,7 +12,7 @@ function register_post(&$a) { call_hooks('register_post', $arr); $max_dailies = intval(get_config('system','max_daily_registrations')); - if($max_dailes) { + if($max_dailies) { $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day"); if($r && $r[0]['total'] >= $max_dailies) { return; @@ -182,7 +182,7 @@ function register_content(&$a) { } $max_dailies = intval(get_config('system','max_daily_registrations')); - if($max_dailes) { + if($max_dailies) { $r = q("select count(*) as total from user where register_date > UTC_TIMESTAMP - INTERVAL 1 day"); if($r && $r[0]['total'] >= $max_dailies) { logger('max daily registrations exceeded.'); @@ -193,6 +193,8 @@ function register_content(&$a) { if(x($_SESSION,'theme')) unset($_SESSION['theme']); + if(x($_SESSION,'mobile-theme')) + unset($_SESSION['mobile-theme']); $username = ((x($_POST,'username')) ? $_POST['username'] : ((x($_GET,'username')) ? $_GET['username'] : '')); @@ -245,6 +247,8 @@ function register_content(&$a) { call_hooks('register_form',$arr); + $o = $arr['template']; + $o = replace_macros($o, array( '$oidhtml' => $oidhtml, '$invitations' => get_config('system','invitation_only'),