]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/login.php
change URLs for user sitemap
[quix0rs-gnu-social.git] / actions / login.php
index 8ea3c800b70f72d1915dd497e0d4fe76d14bf728..dc6352368a698e0753619bdb9827df4b555585d9 100644 (file)
@@ -267,9 +267,13 @@ class LoginAction extends Action
                      'user name and password ' .
                      'before changing your settings.');
         } else {
-            return _('Login with your username and password. ' .
-                     'Don\'t have a username yet? ' .
-                     '[Register](%%action.register%%) a new account.');
+            $prompt = _('Login with your username and password.');
+            if (!common_config('site', 'closed') && !common_config('site', 'inviteonly')) {
+                $prompt .= ' ';
+                $prompt .= _('Don\'t have a username yet? ' .
+                             '[Register](%%action.register%%) a new account.');
+            }
+            return $prompt;
         }
     }