From 10610a6f81ece9cfcbf220f78a62dc6735b48698 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 16 Nov 2010 00:40:41 +0000 Subject: made page_draw() backward compatible with 1.7 git-svn-id: http://code.elgg.org/elgg/trunk@7323 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'engine') 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); } /** -- cgit v1.2.3