aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 23:58:36 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-02 23:58:36 +0000
commit53b7f5e7715ea3c71f525df77d74641e5220a9a6 (patch)
tree72dfa7b6935e6dbfcef9f78a785ddb739c6d68b5 /engine/lib
parent6e51bcd2d33417f529da15baa5a413ebfc0ca993 (diff)
downloadelgg-53b7f5e7715ea3c71f525df77d74641e5220a9a6.tar.gz
elgg-53b7f5e7715ea3c71f525df77d74641e5220a9a6.tar.bz2
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
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/admin.php2
-rw-r--r--engine/lib/api.php2
-rw-r--r--engine/lib/elgglib.php4
-rw-r--r--engine/lib/tags.php2
-rw-r--r--engine/lib/users.php4
-rw-r--r--engine/lib/xml-rpc.php2
6 files changed, 8 insertions, 8 deletions
diff --git a/engine/lib/admin.php b/engine/lib/admin.php
index 0db58f680..595a3aa7c 100644
--- a/engine/lib/admin.php
+++ b/engine/lib/admin.php
@@ -212,7 +212,7 @@ function admin_settings_page_handler($page) {
}
$body = elgg_view_layout('administration', $content);
- page_draw($title, $body, 'page_shells/admin');
+ echo elgg_view_page($title, $body, 'page_shells/admin');
}
/**
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)));
}
diff --git a/engine/lib/elgglib.php b/engine/lib/elgglib.php
index 3f12bd10f..7dd485227 100644
--- a/engine/lib/elgglib.php
+++ b/engine/lib/elgglib.php
@@ -1064,7 +1064,7 @@ function _elgg_php_exception_handler($exception) {
elgg_set_viewtype('failsafe');
$body = elgg_view("messages/exceptions/exception", array('object' => $exception));
- page_draw(elgg_echo('exception:title'), $body);
+ echo elgg_view_page(elgg_echo('exception:title'), $body);
}
/**
@@ -2117,7 +2117,7 @@ function js_page_handler($page) {
function elgg_walled_garden_index() {
$login = elgg_view('account/forms/login_walled_garden');
- page_draw('', $login, 'page_shells/walled_garden');
+ echo elgg_view_page('', $login, 'page_shells/walled_garden');
// @hack Index must exit to keep plugins from continuing to extend
exit;
diff --git a/engine/lib/tags.php b/engine/lib/tags.php
index 02c8e433c..68cfee940 100644
--- a/engine/lib/tags.php
+++ b/engine/lib/tags.php
@@ -441,7 +441,7 @@ function elgg_tagcloud_page_handler($page) {
$tags = display_tagcloud(0, 100, 'tags');
$body = elgg_view_layout('one_column_with_sidebar', $title . $tags);
- page_draw(elgg_echo('tags:site_cloud'), $body);
+ echo elgg_view_page(elgg_echo('tags:site_cloud'), $body);
break;
}
}
diff --git a/engine/lib/users.php b/engine/lib/users.php
index 7632a4834..e76702fb2 100644
--- a/engine/lib/users.php
+++ b/engine/lib/users.php
@@ -978,7 +978,7 @@ function elgg_user_resetpassword_page_handler($page) {
$title = elgg_echo('resetpassword');
$content = elgg_view_title(elgg_echo('resetpassword')) . $form;
- page_draw($title, elgg_view_layout('one_column', $content));
+ echo elgg_view_page($title, elgg_view_layout('one_column', $content));
}
/**
@@ -1332,7 +1332,7 @@ function elgg_user_login_page_handler() {
' . elgg_view('account/forms/login') . '
</div>
';
- page_draw('test', $content);
+ echo elgg_view_page('test', $content);
}
/**
diff --git a/engine/lib/xml-rpc.php b/engine/lib/xml-rpc.php
index 70eb627d8..251d470a1 100644
--- a/engine/lib/xml-rpc.php
+++ b/engine/lib/xml-rpc.php
@@ -193,5 +193,5 @@ function _php_xmlrpc_exception_handler($exception) {
$content = elgg_view("xml-rpc/output", $vars);
- page_draw($exception->getMessage(), $content);
+ echo elgg_view_page($exception->getMessage(), $content);
}