]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/favorited.php
Added configuration option to only allow OpenID logins.
[quix0rs-gnu-social.git] / actions / favorited.php
index 156c7a70094a68513f22ec298d568146a0b0324e..a3d1a5e206ed6ec4abc0ab35db97f772329ff320 100644 (file)
@@ -153,7 +153,8 @@ class FavoritedAction extends Action
             $message .= _('Be the first to add a notice to your favorites by clicking the fave button next to any notice you like.');
         }
         else {
-            $message .= _('Why not [register an account](%%action.register%%) and be the first to add a notice to your favorites!');
+            $message .= sprintf(_('Why not [register an account](%%%%action.%s%%%%) and be the first to add a notice to your favorites!'),
+                                (!common_config('site','openidonly')) ? 'register' : 'openidlogin');
         }
 
         $this->elementStart('div', 'guide');