]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #3086 adds backward compatibility code in elgg_view() for full_view vs full
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 27 Mar 2011 01:01:21 +0000 (01:01 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Sun, 27 Mar 2011 01:01:21 +0000 (01:01 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8865 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/views.php

index 442f777f65d35f69f2a14ce8e76cb7b00ffac07b..cdb3e0bade5a9aec7aae726c5d7ffeff3fd74376 100644 (file)
@@ -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);