aboutsummaryrefslogtreecommitdiffstats
path: root/boot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-10-30 18:49:14 -0700
committerfriendica <info@friendica.com>2013-10-30 18:49:14 -0700
commitbba188eae3f1286910e8c57d304f72eab8e0ea14 (patch)
treea7d71dbb5a191ec66ad870c5b9d5d2be123538c1 /boot.php
parent400753b6ccfce66d6d88cefa7a7677016152a415 (diff)
downloadvolse-hubzilla-bba188eae3f1286910e8c57d304f72eab8e0ea14.tar.gz
volse-hubzilla-bba188eae3f1286910e8c57d304f72eab8e0ea14.tar.bz2
volse-hubzilla-bba188eae3f1286910e8c57d304f72eab8e0ea14.zip
if registration is disabled, send the site register link to pubsites
Diffstat (limited to 'boot.php')
-rwxr-xr-xboot.php14
1 files changed, 6 insertions, 8 deletions
diff --git a/boot.php b/boot.php
index c7af5147e..e97d59f87 100755
--- a/boot.php
+++ b/boot.php
@@ -1410,14 +1410,12 @@ function login($register = false, $form_id = 'main-login', $hiddens=false) {
$reglink = get_config('system','register_link');
if(! strlen($reglink))
$reglink = 'register';
-
- if ($register) {
- $reg = array(
- 'title' => t('Create a New Account'),
- 'desc' => t('Register'),
- 'link' => $reglink
- );
- }
+
+ $reg = array(
+ 'title' => t('Create an account to access services and applications within the Red Matrix'),
+ 'desc' => t('Register'),
+ 'link' => (($register) ? $reglink : 'pubsites')
+ );
$dest_url = $a->get_baseurl(true) . '/' . $a->query_string;