]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'testing' into 0.9.x
authorBrion Vibber <brion@pobox.com>
Wed, 19 May 2010 19:51:25 +0000 (12:51 -0700)
committerBrion Vibber <brion@pobox.com>
Wed, 19 May 2010 19:51:25 +0000 (12:51 -0700)
Conflicts:
plugins/OpenID/openidlogin.php

1  2 
actions/register.php
lib/util.php
locale/en_GB/LC_MESSAGES/statusnet.po
plugins/OpenID/OpenIDPlugin.php
plugins/OpenID/finishaddopenid.php
plugins/OpenID/finishopenidlogin.php
plugins/OpenID/openid.php
plugins/OpenID/openidlogin.php

Simple merge
diff --cc lib/util.php
Simple merge
Simple merge
index 6b723ad10f9fda963b009d51babfb7f19cd8e683,9eac9f6fcd2b5ddace8100181e8f67cb0fbf0724..fdcfacfa5d1cc928cc30eb35601ded53d956dc2e
@@@ -199,11 -212,11 +212,11 @@@ class OpenIDPlugin extends Plugi
  
      function onStartPrimaryNav($action)
      {
-         if ($this->openidOnly && !common_logged_in()) {
+         if (common_config('site', 'openidonly') && !common_logged_in()) {
              // TRANS: Tooltip for main menu option "Login"
              $tooltip = _m('TOOLTIP', 'Login to the site');
 -            // TRANS: Main menu option when not logged in to log in
              $action->menuItem(common_local_url('openidlogin'),
 +                              // TRANS: Main menu option when not logged in to log in
                                _m('MENU', 'Login'),
                                $tooltip,
                                false,
Simple merge
Simple merge
Simple merge
index ec05daeb180efd15bc147badf0444856aaa72df5,8c559c934637bc4704da96180c330a53df27247a..34e00cccebd509cc3f83c8d7d03c0d569330d79d
@@@ -27,10 -27,14 +27,15 @@@ class OpenidloginAction extends Actio
      {
          parent::handle($args);
          if (common_is_real_login()) {
 +            // TRANS: Client error message trying to log on with OpenID while already logged on.
              $this->clientError(_m('Already logged in.'));
          } else if ($_SERVER['REQUEST_METHOD'] == 'POST') {
-             $openid_url = $this->trimmed('openid_url');
+             $provider = common_config('openid', 'trusted_provider');
+             if ($provider) {
+                 $openid_url = $provider;
+             } else {
+                 $openid_url = $this->trimmed('openid_url');
+             }
  
              oid_assert_allowed($openid_url);
  
  
          $this->elementStart('ul', 'form_data');
          $this->elementStart('li');
-         // TRANS: OpenID plugin logon form field label.
-         $this->input('openid_url', _m('OpenID URL'),
-                      $this->openid_url,
-                      // TRANS: OpenID plugin logon form field instructions.
-                      _m('Your OpenID URL'));
+         $provider = common_config('openid', 'trusted_provider');
+         if ($provider) {
+             $this->element('label', array(), _m('OpenID provider'));
+             $this->element('span', array(), $provider);
+             $this->element('p', 'form_guide',
+                            _m('You will be sent to the provider\'s site for authentication.'));
+             $this->hidden('openid_url', $provider);
+         } else {
++            // TRANS: OpenID plugin logon form field label.
+             $this->input('openid_url', _m('OpenID URL'),
+                          $this->openid_url,
++                        // TRANS: OpenID plugin logon form field instructions.
+                          _m('Your OpenID URL'));
+         }
          $this->elementEnd('li');
          $this->elementStart('li', array('id' => 'settings_rememberme'));
 +        // TRANS: OpenID plugin logon form checkbox label for setting to put the OpenID information in a cookie.
          $this->checkbox('rememberme', _m('Remember me'), false,
 +                        // TRANS: OpenID plugin logon form field instructions.
                          _m('Automatically login in the future; ' .
                             'not for shared computers!'));
          $this->elementEnd('li');