MDL-36424 wiki: set group so subwiki tabs/pages display correctly

This commit is contained in:
Ed Basset
2018-06-14 17:33:18 +02:00
committed by Luca Bösch
parent 9e7c397889
commit 1764defb5a
+4
View File
@@ -177,6 +177,10 @@ if ($id) {
$groupmode = groups_get_activity_groupmode($cm);
// This is where people will land when they change groups using the drop-down selector.
// Set the activity group so tabs and content are shown correctly.
$currentgroup = groups_get_activity_group($cm, true);
if ($wiki->wikimode == 'individual' && ($groupmode == SEPARATEGROUPS || $groupmode == VISIBLEGROUPS)) {
list($gid, $uid) = explode('-', $groupanduser);
} else if ($wiki->wikimode == 'individual') {