aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib')
-rw-r--r--engine/lib/views.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php
index f58e374db..6118be030 100644
--- a/engine/lib/views.php
+++ b/engine/lib/views.php
@@ -393,6 +393,22 @@ function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $vie
if (!isset($vars['url'])) {
$vars['url'] = elgg_get_site_url();
}
+
+ // internalname => name (1.8)
+ if (isset($vars['internalname'])) {
+ elgg_deprecated_notice('You should pass $vars[\'name\'] now instead of $vars[\'internalname\']', 1.8);
+ $vars['name'] = $vars['internalname'];
+ } elseif (isset($vars['name'])) {
+ $vars['internalname'] = $vars['name'];
+ }
+
+ // internalid => id (1.8)
+ if (isset($vars['internalid'])) {
+ elgg_deprecated_notice('You should pass $vars[\'id\'] now instead of $vars[\'internalid\']', 1.8);
+ $vars['id'] = $vars['internalid'];
+ } elseif (isset($vars['id'])) {
+ $vars['internalid'] = $vars['id'];
+ }
// If it's been requested, pass off to a template handler instead
if ($bypass == false && isset($CONFIG->template_handler) && !empty($CONFIG->template_handler)) {