From 53b7f5e7715ea3c71f525df77d74641e5220a9a6 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Tue, 2 Nov 2010 23:58:36 +0000 Subject: Fixes #2360: page_draw => elgg_view_page in core + bundled plugins git-svn-id: http://code.elgg.org/elgg/trunk@7210 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engine/lib/api.php') diff --git a/engine/lib/api.php b/engine/lib/api.php index fa7c17d80..a2b80625c 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -1253,7 +1253,7 @@ function _php_api_exception_handler($exception) { $code = $exception->getCode() == 0 ? ErrorResult::$RESULT_FAIL : $exception->getCode(); $result = new ErrorResult($exception->getMessage(), $code, NULL); - page_draw($exception->getMessage(), elgg_view("api/output", array("result" => $result))); + echo elgg_view_page($exception->getMessage(), elgg_view("api/output", array("result" => $result))); } -- cgit v1.2.3