aboutsummaryrefslogtreecommitdiff
path: root/endpoints
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 17:43:39 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-10 17:43:39 +0000
commitdf1d8b6068b0bd979cf04555cae6285c44531465 (patch)
tree28a09cc5d57e09d36ea97e0742fa88a0909327a1 /endpoints
parenteaa0e26b19e46e0391644251ec09fe2451c67f35 (diff)
downloadelgg-df1d8b6068b0bd979cf04555cae6285c44531465.tar.gz
elgg-df1d8b6068b0bd979cf04555cae6285c44531465.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* First draft api git-svn-id: https://code.elgg.org/elgg/trunk@144 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'endpoints')
-rw-r--r--endpoints/rest.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/endpoints/rest.php b/endpoints/rest.php
index cb47804ed..40631e81d 100644
--- a/endpoints/rest.php
+++ b/endpoints/rest.php
@@ -41,14 +41,12 @@
$api_header = get_and_validate_api_headers();
$ApiEnvironment->api_header = $api_header;
- // Get site
-
-
-
-
// Pull API user details
$ApiEnvironment->api_user = get_api_user($api_header->api_key);
+ // Get site
+ $ApiEnvironment->site_id = $ApiEnvironment->api_user->side_id;
+
if ($ApiEnvironment->api_user)
{
// Get the secret key