]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fixed incorrect link on registration successful page
authorEric Helgeson <erichelgeson@gmail.com>
Sat, 20 Feb 2010 21:57:05 +0000 (21:57 +0000)
committerEric Helgeson <erichelgeson@gmail.com>
Sat, 20 Feb 2010 21:57:05 +0000 (21:57 +0000)
plugins/OpenID/OpenIDPlugin.php

index 248afe3fa88e92e32c2782c5c907b45055345530..6b35ec3e142f2f1503f7df6476e94691fb1d1d2f 100644 (file)
@@ -235,9 +235,14 @@ class OpenIDPlugin extends Plugin
         switch ($name)
         {
          case 'register':
-            $instr = '(Have an [OpenID](http://openid.net/)? ' .
-              'Try our [OpenID registration]'.
-              '(%%action.openidlogin%%)!)';
+            if (common_logged_in()) {
+                $instr = '(Have an [OpenID](http://openid.net/)? ' .
+                  '[Add an OpenID to your account](%%action.openidsettings%%)!';
+            } else {
+                $instr = '(Have an [OpenID](http://openid.net/)? ' .
+                  'Try our [OpenID registration]'.
+                  '(%%action.openidlogin%%)!)';
+            }
             break;
          case 'login':
             $instr = '(Have an [OpenID](http://openid.net/)? ' .