}
}
- if (!empty($_SESSION['theme'])) {
- unset($_SESSION['theme']);
- }
- if (!empty($_SESSION['mobile-theme'])) {
- unset($_SESSION['mobile-theme']);
- }
-
$username = defaults($_REQUEST, 'username' , '');
$email = defaults($_REQUEST, 'email' , '');
$openid_url = defaults($_REQUEST, 'openid_url', '');
$a->internalRedirect();
}
+ // Check if the note to the admin is actually filled out
+ if (empty($_POST['permonlybox'])) {
+ \notice(L10n::t('You have to leave a request note for the admin.')
+ . L10n::t('Your registration can not be processed.') . EOL);
+
+ $a->internalRedirect('register/');
+ }
+
Model\Register::createForApproval($user['uid'], Config::get('system', 'language'), $_POST['permonlybox']);
// invite system