aboutsummaryrefslogtreecommitdiff
path: root/mod/diagnostics/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/diagnostics/start.php')
-rw-r--r--mod/diagnostics/start.php2
1 files changed, 1 insertions, 1 deletions
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/');
}