From: moodler Date: Fri, 26 Jan 2007 06:18:43 +0000 (+0000) Subject: Fixed up the tabs for roles X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=28b822fe5e24ffa776911df56bbcc54a9f67ddf3;p=moodle.git Fixed up the tabs for roles --- diff --git a/admin/roles/tabs.php b/admin/roles/tabs.php index 94e647e66c..33f27e089d 100755 --- a/admin/roles/tabs.php +++ b/admin/roles/tabs.php @@ -130,7 +130,6 @@ if ($context->contextlevel != CONTEXT_SYSTEM) { // Print tabs for anything ex $overridableroles = get_overridable_roles($context); } - $inactive[] = 'roles'; if (!empty($assignableroles)) { $secondrow[] = new tabobject('assign', $CFG->wwwroot.'/'.$CFG->admin.'/roles/assign.php?contextid='.$context->id, @@ -147,14 +146,14 @@ if ($context->contextlevel != CONTEXT_SYSTEM) { // Print tabs for anything ex true); } - if ($tabsmode == 'override') { - $currenttab = 'override'; - } elseif ($tabsmode == 'assign') { - $currenttab = 'assign'; - } + $inactive[] = 'roles'; + $activetwo = array('roles'); + $currenttab = $tabsmode; } else { $inactive[] = ''; + $activetwo = array(); + $currenttab = 'roles'; } if (!empty($secondrow)) { @@ -163,7 +162,7 @@ if ($context->contextlevel != CONTEXT_SYSTEM) { // Print tabs for anything ex $tabs = array($toprow); } - print_tabs($tabs, $currenttab, $inactive); + print_tabs($tabs, $currenttab, $inactive, $activetwo); } ?>