From a7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4 Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 10 Nov 2010 20:45:50 +0000 Subject: Refs #2124: Removed js, page_owner, and page_owner_user variables from $vars git-svn-id: http://code.elgg.org/elgg/trunk@7283 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/views.php | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'engine/lib') diff --git a/engine/lib/views.php b/engine/lib/views.php index 5e0e8f8a2..9d60ec11c 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -266,29 +266,6 @@ function elgg_view($view, $vars = array(), $bypass = false, $debug = false, $vie $vars['url'] = elgg_get_site_url(); - // Load page owner variables into $vars - if (is_callable('page_owner')) { - $vars['page_owner'] = elgg_get_page_owner_guid(); - } else { - $vars['page_owner'] = -1; - } - - // @todo why is is_installed() here? - if (($vars['page_owner'] != -1) && (is_installed())) { - if (!isset($usercache[$vars['page_owner']])) { - $vars['page_owner_user'] = get_entity($vars['page_owner']); - $usercache[$vars['page_owner']] = $vars['page_owner_user']; - } else { - $vars['page_owner_user'] = $usercache[$vars['page_owner']]; - } - } - - // @todo why is there a special js var here? - // is this just for input views that could accept js as a param? - if (!isset($vars['js'])) { - $vars['js'] = ""; - } - // If it's been requested, pass off to a template handler instead if ($bypass == false && isset($CONFIG->template_handler) && !empty($CONFIG->template_handler)) { $template_handler = $CONFIG->template_handler; -- cgit v1.2.3