]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'testing' of gitorious.org:statusnet/mainline into 0.9.x
authorBrion Vibber <brion@pobox.com>
Thu, 27 May 2010 21:57:32 +0000 (14:57 -0700)
committerBrion Vibber <brion@pobox.com>
Thu, 27 May 2010 21:57:32 +0000 (14:57 -0700)
Conflicts:
lib/language.php
plugins/OpenID/finishaddopenid.php

1  2 
actions/apitimelinefriends.php
actions/apitimelinehome.php
actions/apitimelinepublic.php
classes/File.php
classes/Notice.php
lib/atomgroupnoticefeed.php
lib/atomusernoticefeed.php
lib/language.php
plugins/OpenID/finishaddopenid.php
plugins/OpenID/finishopenidlogin.php
plugins/OpenID/openid.php

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index b4810d04a082630cea2ce2b6b94d68b7944b5693,7934a4f9e5483ffcff4f17b249184f0860d13d92..c7c36af82571faf995447e5e5c3bc2ac8fa57a2a
@@@ -54,11 -55,10 +55,11 @@@ class AtomGroupNoticeFeed extends AtomN
       *
       * @return void
       */
-     function __construct($group, $indent = true) {
-         parent::__construct($indent);
+     function __construct($group, $cur = null, $indent = true) {
+         parent::__construct($cur, $indent);
          $this->group = $group;
  
 +        // TRANS: Title in atom group notice feed. %s is a group name.
          $title      = sprintf(_("%s timeline"), $group->nickname);
          $this->setTitle($title);
  
Simple merge
index 8009adc9b741c278506271e67e900b48c6e91ddc,3846b8f358bdb9581d3e54286c93a1fd14ddbe3f..5a2818133d6979e7fa8e903323851b2549cb3d2a
@@@ -206,15 -205,21 +206,22 @@@ function _mdomain($backtrace
          if (DIRECTORY_SEPARATOR !== '/') {
              $path = strtr($path, DIRECTORY_SEPARATOR, '/');
          }
-         $cut = strpos($path, '/plugins/');
-         if ($cut) {
-             $cut += strlen('/plugins/');
+         $plug = strpos($path, '/plugins/');
+         if ($plug === false) {
+             // We're not in a plugin; return null for the default domain.
+             return null;
+         } else {
+             $cut = $plug + 9;
              $cut2 = strpos($path, '/', $cut);
-             if ($cut && $cut2) {
-                 $final = substr($path, $cut, $cut2 - $cut);
+             if ($cut2) {
+                 $cached[$path] = substr($path, $cut, $cut2 - $cut);
+             } else {
+                 // We might be running directly from the plugins dir?
+                 // If so, there's no place to store locale info.
+                 return null;
              }
          }
 +        $cached[$path] = $final;
      }
      return $cached[$path];
  }
index e07ab764e1bd78a68b5047d4f710bab3018035d1,064e976426c58b58d9a6452cd5cb81db2e59bb01..47b3f7fb167c9de4890d8708013eb85e840edba4
@@@ -138,13 -132,15 +138,16 @@@ class FinishaddopenidAction extends Act
                  $this->message(_m('Error connecting user.'));
                  return;
              }
-             if ($sreg) {
-                 if (!oid_update_user($cur, $sreg)) {
-                     // TRANS: message in case the user or the user profile cannot be saved in StatusNet.
-                     $this->message(_m('Error updating profile'));
-                     return;
+             if (Event::handle('StartOpenIDUpdateUser', array($cur, $canonical, &$sreg))) {
+                 if ($sreg) {
+                     if (!oid_update_user($cur, $sreg)) {
++                        // TRANS: message in case the user or the user profile cannot be saved in StatusNet.
+                         $this->message(_m('Error updating profile'));
+                         return;
+                     }
                  }
              }
+             Event::handle('EndOpenIDUpdateUser', array($cur, $canonical, $sreg));
  
              // success!
  
Simple merge
Simple merge