aboutsummaryrefslogtreecommitdiff
path: root/endpoints/rest.php
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-11 11:43:56 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-11 11:43:56 +0000
commit2506daa080f44cca1d62efe5d2c2b68e0fe9c284 (patch)
tree945405322bca4d1f5c4dc4950fd3366adf6faf20 /endpoints/rest.php
parent8aa66785033b40cad44c1e3a9c9c11b4285d407f (diff)
downloadelgg-2506daa080f44cca1d62efe5d2c2b68e0fe9c284.tar.gz
elgg-2506daa080f44cca1d62efe5d2c2b68e0fe9c284.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Site id specified git-svn-id: https://code.elgg.org/elgg/trunk@153 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'endpoints/rest.php')
-rw-r--r--endpoints/rest.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/endpoints/rest.php b/endpoints/rest.php
index 40631e81d..e00d27555 100644
--- a/endpoints/rest.php
+++ b/endpoints/rest.php
@@ -13,7 +13,7 @@
// Include required files
require_once('../engine/start.php');
- global $ApiEnvironment;
+ global $CONFIG, $ApiEnvironment;
// Register the error handler
error_reporting(E_ALL);
@@ -97,7 +97,8 @@
}
else
{
- // TODO: set site environment
+ // Set site environment
+ $ApiEnvironment->site_id = $CONFIG->site_id;
// User is logged in, just execute
if (isset($params['auth_token'])) $token = $params['auth_token'];