diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 22:59:47 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-03-01 22:59:47 +0000 |
commit | 425b9b8c8b2d01b8d1de1a782dd466e2a4ff1569 (patch) | |
tree | 8d52781c6ff835329897a26b4fd1897a555f4034 /engine | |
parent | 02d310ab9a84f1e994639d096708546318197b96 (diff) | |
download | elgg-425b9b8c8b2d01b8d1de1a782dd466e2a4ff1569.tar.gz elgg-425b9b8c8b2d01b8d1de1a782dd466e2a4ff1569.tar.bz2 |
Fixes #3033 removed use of set_view_location() from core
git-svn-id: http://code.elgg.org/elgg/trunk@8546 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r-- | engine/lib/views.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/views.php b/engine/lib/views.php index 118e95ead..758a07e63 100644 --- a/engine/lib/views.php +++ b/engine/lib/views.php @@ -40,7 +40,7 @@ * are called, so the init order doesn't affect views. * * @internal The file that determines the output of the view is the last - * registered by {@link set_view_location()}. + * registered by {@link elgg_set_view_location()}. * * @package Elgg.Core * @subpackage Views @@ -1419,12 +1419,12 @@ function elgg_view_tree($view_root, $viewtype = "") { * * @param string $view_base Optional The base of the view name without the view type. * @param string $folder Required The folder to begin looking in - * @param string $base_location_path The base views directory to use with set_view_location + * @param string $base_location_path The base views directory to use with elgg_set_view_location() * @param string $viewtype The type of view we're looking at (default, rss, etc) * * @return void * @since 1.7.0 - * @see set_view_location() + * @see elgg_set_view_location() * @todo This seems overly complicated. */ function autoregister_views($view_base, $folder, $base_location_path, $viewtype) { @@ -1444,7 +1444,7 @@ function autoregister_views($view_base, $folder, $base_location_path, $viewtype) $view_base_new = ""; } - set_view_location($view_base_new . str_replace('.php', '', $view), + elgg_set_view_location($view_base_new . str_replace('.php', '', $view), $base_location_path, $viewtype); } } else if (!in_array($view, array('.', '..', '.svn', 'CVS')) && is_dir($folder . "/" . $view)) { |