aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-27 01:01:21 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-27 01:01:21 +0000
commit41616b6f4bbbc8f495a321c89cf62b0d39938ec5 (patch)
tree56b0ced2df63693fd01514af5059a73d40ee64f4
parent5d6d475f8dc84456c35975073e82e8af261c4bf3 (diff)
downloadelgg-41616b6f4bbbc8f495a321c89cf62b0d39938ec5.tar.gz
elgg-41616b6f4bbbc8f495a321c89cf62b0d39938ec5.tar.bz2
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
-rw-r--r--engine/lib/views.php9
1 files changed, 9 insertions, 0 deletions
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);