]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/all.php
Added configuration option to only allow OpenID logins.
[quix0rs-gnu-social.git] / actions / all.php
index f06ead2a8c4776f70bd89b5f8d20a9683ede9450..5db09a0e619a12885c0a074c6d9a38d009b255b6 100644 (file)
@@ -88,7 +88,9 @@ class AllAction extends ProfileAction
             }
         }
         else {
-            $message .= sprintf(_('Why not [register an account](%%%%action.register%%%%) and then nudge %s or post a notice to his or her attention.'), $this->user->nickname);
+            $message .= sprintf(_('Why not [register an account](%%%%action.%s%%%%) and then nudge %s or post a notice to his or her attention.'),
+                                (!common_config('site','openidonly')) ? 'register' : 'openidlogin',
+                                $this->user->nickname);
         }
 
         $this->elementStart('div', 'guide');