aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 02:41:15 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-22 02:41:15 +0000
commitf1726d41455f5cb88bef21e4a13251ab4f2297d7 (patch)
tree6f900363a990d36c5b89bfe262298b53b58395c5
parent6bc33ceece52f126ef0310ddf3aee47d3752cc54 (diff)
downloadelgg-f1726d41455f5cb88bef21e4a13251ab4f2297d7.tar.gz
elgg-f1726d41455f5cb88bef21e4a13251ab4f2297d7.tar.bz2
Refs #2790 - fixes it for real this time
git-svn-id: http://code.elgg.org/elgg/trunk@8417 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/pageowner.php3
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]);
}
}