Skip to content

Commit

Permalink
Fixed bug where api paths not specified correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
m0hamed committed Sep 19, 2013
1 parent 248e19b commit cf9ce0a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/Controller/Component/GithubApiComponent.php
Expand Up @@ -75,11 +75,10 @@ public function getAccessToken($code) {
* @return Arrray the github info returned by github as an associative array
*/
public function getUserInfo($accessToken) {
$url = "/user";
$data = array(
'access_token' => $accessToken,
);
return $this->apiRequest($url, $data, "GET");
return $this->apiRequest("user", $data, "GET");
}

/**
Expand Down

0 comments on commit cf9ce0a

Please sign in to comment.