]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Refs #2790 - fixes it for real this time
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 22 Feb 2011 02:41:15 +0000 (02:41 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 22 Feb 2011 02:41:15 +0000 (02:41 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8417 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/lib/pageowner.php

index d7f34539d2521458639275e4353900cbd25c9978..c9e85d22f970996fc7a67d96f7404c114c2f0b20 100644 (file)
@@ -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]);
        }
 }