aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-08-27 21:17:46 -0700
committerfriendica <info@friendica.com>2012-08-27 21:17:46 -0700
commit7fad83cea4dd134df6dacf8248ef6947dca7f100 (patch)
treec4a8174b8dac64949e874b9149456e2541050f1c /include/account.php
parent8c3c3d5fd7acc5df0aec9c10f8bdd89bedd2060a (diff)
downloadvolse-hubzilla-7fad83cea4dd134df6dacf8248ef6947dca7f100.tar.gz
volse-hubzilla-7fad83cea4dd134df6dacf8248ef6947dca7f100.tar.bz2
volse-hubzilla-7fad83cea4dd134df6dacf8248ef6947dca7f100.zip
Now logging in with Red zaccount/zentity instead of Friendica user. Yay. Most existing Friendica functionality is now stuffed since the Red structures are quite different.
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/account.php b/include/account.php
index e08b129f3..fa56afe7d 100644
--- a/include/account.php
+++ b/include/account.php
@@ -91,6 +91,10 @@ function create_account($arr) {
$parent = ((x($arr,'parent')) ? intval($arr['parent']) : 0 );
$flags = ((x($arr,'account_flags')) ? intval($arr['account_flags']) : ACCOUNT_OK);
+ $default_service_class = get_config('system','default_service_class');
+ if($default_service_class === false)
+ $default_service_class = '';
+
if((! x($email)) || (! x($password))) {
$result['message'] = t('Please enter the required information.');
return $result;
@@ -236,7 +240,7 @@ function send_reg_approval_email($arr) {
function send_verification_email($email,$password) {
$email_msg = replace_macros(get_intltext_template('register_open_eml.tpl'), array(
- '$sitename' => $get_config('config','sitename'),
+ '$sitename' => get_config('config','sitename'),
'$siteurl' => z_root(),
'$email' => $email,
'$password' => $password,