From 41616b6f4bbbc8f495a321c89cf62b0d39938ec5 Mon Sep 17 00:00:00 2001 From: cash Date: Sun, 27 Mar 2011 01:01:21 +0000 Subject: Refs #3086 adds backward compatibility code in elgg_view() for full_view vs full git-svn-id: http://code.elgg.org/elgg/trunk@8865 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/engine/lib/views.php b/engine/lib/views.php index 442f777f6..cdb3e0bad 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -394,6 +394,15 @@ function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $vie $vars['url'] = elgg_get_site_url(); } + // full_view is the new preferred key for full view on entities @see elgg_view_entity() + if (isset($vars['full'])) { + elgg_deprecated_notice("Use \$vars['full_view'] instead of \$vars['full']", 1.8); + $vars['full_view'] = $vars['full']; + } + if (isset($vars['full_view'])) { + $vars['full'] = $vars['full_view']; + } + // internalname => name (1.8) if (isset($vars['internalname'])) { elgg_deprecated_notice('You should pass $vars[\'name\'] now instead of $vars[\'internalname\']', 1.8); -- cgit v1.2.3