X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Finvite.php;h=f4061c2c33763fde8298bdb60db7358dcfb5e68e;hb=7034d6efbd988e7481ac6f5d6413a8925221ed6b;hp=fef5ce8341caf6473452c25e0b9d9371f92a7f1a;hpb=9c2c4839968169a191084d6d2b0d629d82430e67;p=friendica.git diff --git a/mod/invite.php b/mod/invite.php index fef5ce8341..f4061c2c33 100644 --- a/mod/invite.php +++ b/mod/invite.php @@ -7,6 +7,8 @@ * */ +use Friendica\App; + require_once('include/email.php'); function invite_post(App $a) { @@ -83,7 +85,7 @@ function invite_post(App $a) { $total ++; $current_invites ++; set_pconfig(local_user(),'system','sent_invites',$current_invites); - if ($current_invites > $max_invites) { + if($current_invites > $max_invites) { notice( t('Invitation limit exceeded. Please contact your site administrator.') . EOL); return; } @@ -119,7 +121,7 @@ function invite_content(App $a) { $dirloc = get_config('system','directory'); if (strlen($dirloc)) { if ($a->config['register_policy'] == REGISTER_CLOSED) { - $linktxt = sprintf( t('Visit %s for a list of public sites that you can join. Friendica members on other sites can all connect with each other, as well as with members of many other social networks.'), $dirloc . '/siteinfo'); + $linktxt = sprintf( t('Visit %s for a list of public sites that you can join. Friendica members on other sites can all connect with each other, as well as with members of many other social networks.'), $dirloc . '/servers'); } elseif ($a->config['register_policy'] != REGISTER_CLOSED) { $linktxt = sprintf( t('To accept this invitation, please visit and register at %s or any other public Friendica website.'), App::get_baseurl()) . "\r\n" . "\r\n" . sprintf( t('Friendica sites all inter-connect to create a huge privacy-enhanced social web that is owned and controlled by its members. They can also connect with many traditional social networks. See %s for a list of alternate Friendica sites you can join.'),$dirloc . '/siteinfo');