Fix OAuth2 code object

This commit is contained in:
Romain Neutron
2012-09-24 09:41:34 +02:00
parent 7e66d8654b
commit 0b5a6d15f2

View File

@@ -66,7 +66,7 @@ class API_OAuth2_AuthCode
public function get_account() public function get_account()
{ {
if ( ! $this->account) if ( ! $this->account)
$this->account = new API_OAuth2_Account($this->app['phraseanet.appbox'], $this->account_id); $this->account = new API_OAuth2_Account($this->app, $this->account_id);
return $this->account; return $this->account;
} }