]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/replies.php
Added configuration option to only allow OpenID logins.
[quix0rs-gnu-social.git] / actions / replies.php
index d7ed440e9237d0a32fd814eb1dd99269ad6393f9..f14383d33b8fed5d5d9e240d4ad4080bbc548113 100644 (file)
@@ -187,7 +187,9 @@ class RepliesAction extends OwnerDesignAction
             }
         }
         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');