inconsistencies in group menu - pages plugin
|Reported by:||vazco||Owned by:|
The group submenus are inconsistent when you enter the group->pages.
When you add this code to the line 43 of the file /
mod/pages/index.php, it works:
set context based on user to display submenus correctly
$newContext = 'search';
if ($owner instanceof ElggGroup)
$newContext = 'groups';
else if ($owner instanceof ElggUser)
$newContext = 'profile';
Also, it seems leaving the context of the page on the one set is better than setting it to pages, since it seems not only pages use the context.