diff options
Diffstat (limited to 'engine/lib')
-rw-r--r-- | engine/lib/pageowner.php | 3 |
1 files changed, 2 insertions, 1 deletions
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]); } } |