diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 20:45:50 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-10 20:45:50 +0000 |
commit | a7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4 (patch) | |
tree | a5956b97e4a2f6ccc0542751ec054a32ef70e95d | |
parent | befc46338c4e48635008312eab14efec40d6d26c (diff) | |
download | elgg-a7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4.tar.gz elgg-a7801c71ecc6ce0f0d2a8fc82cdc779da9417aa4.tar.bz2 |
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
-rw-r--r-- | engine/lib/views.php | 23 |
1 files changed, 0 insertions, 23 deletions
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; |