Old fix I'd forgotten

This commit is contained in:
moodler 2007-03-05 07:17:32 +00:00
parent d293521a90
commit 5af76d3c91

View File

@ -71,9 +71,7 @@
}
$tabs[] = $row;
/*****************************
* stolen code from quiz report
*****************************/
if ($currenttab == 'templates' and isset($mode)) {
$inactive[] = 'templates';
@ -82,8 +80,7 @@
$row = array();
$currenttab ='';
foreach ($templatelist as $template) {
$row[] = new tabobject($template, "templates.php?d=$data->id&mode=$template",
get_string($template, 'data'));
$row[] = new tabobject($template, "templates.php?d=$data->id&mode=$template", get_string($template, 'data'));
if ($template == $mode) {
$currenttab = $template;
}