From 5af76d3c913cb78d047a37aa003a023bcda0b26d Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 5 Mar 2007 07:17:32 +0000 Subject: [PATCH] Old fix I'd forgotten --- mod/data/tabs.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; } -- 2.39.5