mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
Old fix I'd forgotten
This commit is contained in:
parent
d293521a90
commit
5af76d3c91
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user