diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 12:35:58 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-03 12:35:58 +0000 |
commit | fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1 (patch) | |
tree | 62c46a9e29666e8d79e18672c868c7759461e4f1 /engine/lib/views.php | |
parent | bf39908f4d587785a197de80b528e73c43ce99d9 (diff) | |
download | elgg-fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1.tar.gz elgg-fe113218b2b82338f6294cd2f2ba6a11d4bdf6a1.tar.bz2 |
removed uses of $vars[config] in views
git-svn-id: http://code.elgg.org/elgg/trunk@8004 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/views.php')
-rw-r--r-- | engine/lib/views.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php index 0a9669d2f..4f6088859 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -318,11 +318,12 @@ function elgg_view_exists($view, $viewtype = '', $recurse = true) { * Views are rendered by a template handler and returned as strings. * * Views are called with a special $vars variable set, - * which includes any variables passed as the second parameter, - * as well as some defaults: - * - All $_SESSION vars merged to $vars array. - * - $vars['config'] The $CONFIG global. (Use {@link get_config()} instead). - * - $vars['url'] The site URL. + * which includes any variables passed as the second parameter. + * For backward compatbility, the following variables are also set but we + * recommend that you do not use them: + * - $vars['config'] The $CONFIG global. (Use {@link elgg_get_config()} instead). + * - $vars['url'] The site URL. (use {@link elgg_get_site_url()} instead). + * - $vars['user'] The logged in user. (use {@link get_loggedin_user()} instead). * * Custom template handlers can be set with {@link set_template_handler()}. * |