MDL-16046 Fixed up the portfolio tabs

This commit is contained in:
moodler 2008-09-15 06:09:57 +00:00
parent 838a8eb146
commit 55de6e0784
3 changed files with 9 additions and 6 deletions

View file

@ -37,7 +37,7 @@ $navigation = build_navigation($navlinks);
print_header("$course->fullname: $fullname: $strportfolios", $course->fullname,
$navigation, "", "", true, " ", navmenu($course));
$currenttab = 'portfolios';
$currenttab = 'portfolioconf';
$showroles = 1;
include('tabs.php');

View file

@ -30,7 +30,7 @@ $navigation = build_navigation($navlinks);
print_header("$course->fullname: $fullname: $strportfolios", $course->fullname,
$navigation, "", "", true, " ", navmenu($course));
$currenttab = 'portfolios';
$currenttab = 'portfoliologs';
$showroles = 1;
include('tabs.php');

View file

@ -245,10 +245,13 @@
require_once($CFG->libdir . '/portfoliolib.php');
if (portfolio_instances(true, false)) {
$toprow[] = new tabobject('portfolios', $CFG->wwwroot .'/user/portfolio.php', get_string('portfolios', 'portfolio'));
$inactive = array('portfolios');
$activetwo = array('portfolios');
$secondrow[] = new tabobject('configure', $CFG->wwwroot . '/user/portfolio.php', get_string('configure', 'portfolio'));
$secondrow[] = new tabobject('logs', $CFG->wwwroot . '/user/portfoliologs.php', get_string('logs', 'portfolio'));
if (in_array($currenttab, array('portfolioconf', 'portfoliologs'))) {
$inactive = array('portfolios');
$activetwo = array('portfolios');
$secondrow = array();
$secondrow[] = new tabobject('portfolioconf', $CFG->wwwroot . '/user/portfolio.php', get_string('configure', 'portfolio'));
$secondrow[] = new tabobject('portfoliologs', $CFG->wwwroot . '/user/portfoliologs.php', get_string('logs', 'portfolio'));
}
}
}