]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
set the current user in api actions
authorEvan Prodromou <evan@status.net>
Wed, 25 May 2011 17:04:35 +0000 (13:04 -0400)
committerEvan Prodromou <evan@status.net>
Wed, 25 May 2011 17:04:35 +0000 (13:04 -0400)
lib/apiauth.php

index 42d32dd624e0014c4e799bc18b3395cfe3725dc1..1e2a6101d66f801658d1c3e92133a3dca2b1fd24 100644 (file)
@@ -204,6 +204,8 @@ class ApiAuthAction extends ApiAction
                             }
                         }
                         $this->auth_user = $user;
+                        global $_cur;
+                        $_cur = $this->auth_user;
                         Event::handle('EndSetApiUser', array($user));
                     }