Skip to content

Commit

Permalink
MDL-16046 Fixed up the portfolio tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Sep 15, 2008
1 parent 838a8eb commit 55de6e0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion user/portfolio.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
print_header("$course->fullname: $fullname: $strportfolios", $course->fullname,
$navigation, "", "", true, " ", navmenu($course));

$currenttab = 'portfolios';
$currenttab = 'portfolioconf';
$showroles = 1;
include('tabs.php');

Expand Down
2 changes: 1 addition & 1 deletion user/portfoliologs.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
print_header("$course->fullname: $fullname: $strportfolios", $course->fullname,
$navigation, "", "", true, " ", navmenu($course));

$currenttab = 'portfolios';
$currenttab = 'portfoliologs';
$showroles = 1;
include('tabs.php');

Expand Down
11 changes: 7 additions & 4 deletions user/tabs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}
}
}

Expand Down

0 comments on commit 55de6e0

Please sign in to comment.