From 434215396e85fddabfc4de379121de98ffcb84ed Mon Sep 17 00:00:00 2001 From: icewing Date: Fri, 28 Mar 2008 18:18:21 +0000 Subject: Marcus Povey * Using export() instead of toStdClass() git-svn-id: https://code.elgg.org/elgg/trunk@285 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engine/lib') 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 -- cgit v1.2.3