From f1726d41455f5cb88bef21e4a13251ab4f2297d7 Mon Sep 17 00:00:00 2001 From: cash Date: Tue, 22 Feb 2011 02:41:15 +0000 Subject: Refs #2790 - fixes it for real this time git-svn-id: http://code.elgg.org/elgg/trunk@8417 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/lib/pageowner.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engine/lib') diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php index d7f34539d..c9e85d22f 100644 --- a/engine/lib/pageowner.php +++ b/engine/lib/pageowner.php @@ -262,8 +262,9 @@ function page_owner_boot() { elgg_register_plugin_hook_handler('page_owner', 'system', 'default_page_owner_handler'); + $CONFIG->context = array(); if (preg_match("/\/pg\/([\w\-\_]+)/", $_SERVER['REQUEST_URI'], $matches)) { - $CONFIG->context = $matches[1]; + elgg_set_context($matches[1]); } } -- cgit v1.2.3