aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/views.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r--engine/lib/views.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index 9098950e3..40847d1cd 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -1301,9 +1301,13 @@ function elgg_view_page($title, $body, $page_shell = 'page_shells/default', $var
/**
* @deprecated 1.8 Use elgg_view_page()
*/
-function page_draw($title, $body, $page_shell = 'page_shells/default', $vars = array()) {
+function page_draw($title, $body, $sidebar = "") {
elgg_deprecated_notice("page_draw() was deprecated in favor of elgg_view_page() in 1.8.", 1.8);
- echo elgg_view_page($title, $body, $page_shell, $vars);
+
+ $vars = array(
+ 'sidebar' => $sidebar
+ );
+ echo elgg_view_page($title, $body, 'page_shells/default', $vars);
}
/**