aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 02:13:36 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-03 02:13:36 +0000
commitdb7b497114329dda5f560198884c5bc5fbb3c1a8 (patch)
tree35ac7546fe14a8dd372e74d823ede01e24424443 /pages
parent6307e6af3b4a717011570e71b844c4b1e366fae5 (diff)
downloadelgg-db7b497114329dda5f560198884c5bc5fbb3c1a8.tar.gz
elgg-db7b497114329dda5f560198884c5bc5fbb3c1a8.tar.bz2
Fixes #2128 - replaces all uses of set_context() and get_context() in core and plugins
git-svn-id: http://code.elgg.org/elgg/trunk@7215 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages')
-rw-r--r--pages/dashboard/index.php2
-rw-r--r--pages/dashboard/latest.php4
-rw-r--r--pages/entities/index.php2
-rw-r--r--pages/entities/list.php4
4 files changed, 6 insertions, 6 deletions
diff --git a/pages/dashboard/index.php b/pages/dashboard/index.php
index 60a3bd17c..4cd77aa55 100644
--- a/pages/dashboard/index.php
+++ b/pages/dashboard/index.php
@@ -10,7 +10,7 @@
gatekeeper();
// Set context and title
-set_context('dashboard');
+elgg_set_context('dashboard');
set_page_owner(get_loggedin_userid());
$title = elgg_echo('dashboard');
diff --git a/pages/dashboard/latest.php b/pages/dashboard/latest.php
index 6dab598a1..3e8ddeefb 100644
--- a/pages/dashboard/latest.php
+++ b/pages/dashboard/latest.php
@@ -16,10 +16,10 @@ global $CONFIG;
if (is_plugin_enabled('riverdashboard')) {
$title = elgg_view_title(elgg_echo('content:latest'));
- set_context('search');
+ elgg_set_context('search');
$content = elgg_list_registered_entities(array('limit' => 10, 'full_view' => FALSE,
'allowed_types' => array('object','group')));
- set_context('latest');
+ elgg_set_context('latest');
} else {
$content = "Riverdashboard not loaded";
}
diff --git a/pages/entities/index.php b/pages/entities/index.php
index a79e0314d..91cbfad0a 100644
--- a/pages/entities/index.php
+++ b/pages/entities/index.php
@@ -19,7 +19,7 @@ if ($shell == "no") {
$context = get_input('context');
if ($context) {
- set_context($context);
+ elgg_set_context($context);
}
// Get the entity, if possible
diff --git a/pages/entities/list.php b/pages/entities/list.php
index d43e6c25d..c926de42e 100644
--- a/pages/entities/list.php
+++ b/pages/entities/list.php
@@ -6,9 +6,9 @@
* @subpackage Core
*/
-set_context('search');
+elgg_push_context('search');
$area2 = elgg_list_entities();
-set_context('entities');
+elgg_pop_context();
$body = elgg_view_layout('two_column_left_sidebar', $area1, $area2);