diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-16 00:40:41 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-16 00:40:41 +0000 |
commit | 10610a6f81ece9cfcbf220f78a62dc6735b48698 (patch) | |
tree | f0c10c3d117acfc36682bc59a99ce69ff27b6bd0 /engine/lib/views.php | |
parent | 9220cb15f17dc6584f10b3899e8e7359487673c1 (diff) | |
download | elgg-10610a6f81ece9cfcbf220f78a62dc6735b48698.tar.gz elgg-10610a6f81ece9cfcbf220f78a62dc6735b48698.tar.bz2 |
made page_draw() backward compatible with 1.7
git-svn-id: http://code.elgg.org/elgg/trunk@7323 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r-- | engine/lib/views.php | 8 |
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); } /** |