aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-12 21:55:47 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-12 21:55:47 +0000
commitc5da5e4fe76483085d38da092f68b72151e1ddae (patch)
tree7ca508eaa6d3cf903ac2cb361f05a170b68a37b1
parentf22a2760e794ad4d863d817543ecfdc22670809d (diff)
downloadelgg-c5da5e4fe76483085d38da092f68b72151e1ddae.tar.gz
elgg-c5da5e4fe76483085d38da092f68b72151e1ddae.tar.bz2
fixed typo with handling web services request parameters
git-svn-id: http://code.elgg.org/elgg/trunk@3675 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/api.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php
index 4080a2ab1..46b3e0e40 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -1398,7 +1398,7 @@ function service_handler($handler, $request) {
// after the handler, the first identifier is response format
// ex) http://example.org/services/api/rest/xml/?method=test
- $reponse_format = $request[0];
+ $reponse_format = array_shift($request);
// Which view - xml, json, ...
if ($reponse_format) {
elgg_set_viewtype($reponse_format);
@@ -1413,7 +1413,7 @@ function service_handler($handler, $request) {
exit;
} else if (isset($CONFIG->servicehandler[$handler]) && is_callable($CONFIG->servicehandler[$handler])) {
$function = $CONFIG->servicehandler[$handler];
- $function($page, $handler);
+ $function($request, $handler);
} else {
// no handler for this web service
header("HTTP/1.0 404 Not Found");