From: moodler Date: Mon, 5 Mar 2007 07:17:32 +0000 (+0000) Subject: Old fix I'd forgotten X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5af76d3c913cb78d047a37aa003a023bcda0b26d;p=moodle.git Old fix I'd forgotten --- diff --git a/mod/data/tabs.php b/mod/data/tabs.php index a3f9071cf8..efc6f40fa0 100755 --- a/mod/data/tabs.php +++ b/mod/data/tabs.php @@ -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; }