From db7b497114329dda5f560198884c5bc5fbb3c1a8 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 3 Nov 2010 02:13:36 +0000 Subject: 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 --- mod/diagnostics/index.php | 2 +- mod/diagnostics/start.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'mod/diagnostics') diff --git a/mod/diagnostics/index.php b/mod/diagnostics/index.php index ca0f9b9f4..9bc58b56a 100644 --- a/mod/diagnostics/index.php +++ b/mod/diagnostics/index.php @@ -8,7 +8,7 @@ require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php"); admin_gatekeeper(); -set_context('admin'); +elgg_set_context('admin'); // system diagnostics $body = elgg_view_title(elgg_echo('diagnostics')); diff --git a/mod/diagnostics/start.php b/mod/diagnostics/start.php index 45403e3b5..52bd8a1d8 100644 --- a/mod/diagnostics/start.php +++ b/mod/diagnostics/start.php @@ -26,7 +26,7 @@ function diagnostics_init() */ function diagnostics_pagesetup() { - if (get_context() == 'admin' && isadminloggedin()) { + if (elgg_get_context() == 'admin' && isadminloggedin()) { global $CONFIG; add_submenu_item(elgg_echo('diagnostics'), 'pg/diagnostics/'); } -- cgit v1.2.3