aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoricewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-28 18:18:21 +0000
committericewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-03-28 18:18:21 +0000
commit434215396e85fddabfc4de379121de98ffcb84ed (patch)
treef918774939878aca9954092a851ddd7f2fa9eb20
parent841d4d70eb3cb363a249305c215f0439f1970684 (diff)
downloadelgg-434215396e85fddabfc4de379121de98ffcb84ed.tar.gz
elgg-434215396e85fddabfc4de379121de98ffcb84ed.tar.bz2
Marcus Povey <marcus@dushka.co.uk>
* Using export() instead of toStdClass() git-svn-id: https://code.elgg.org/elgg/trunk@285 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 d04a7029b..706003ee0 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -80,7 +80,7 @@
*
* @return stdClass Object containing the serialised result.
*/
- public function toStdClass()
+ public function export()
{
global $ERRORS, $CONFIG, $PAM_HANDLER_MSG;
@@ -781,7 +781,7 @@
return $API_OUTPUT_FUNCTIONS[$format]($result->toStdClass());
// We got here, so no output format was found. Output an error
- $result = print_r($result->toStdClass(), true);
+ $result = print_r($result->export(), true);
return <<< END
<html>