]> git.mjollnir.org Git - moodle.git/commitdiff
Made some of the tabs linked even if selected in the different views.
authorvyshane <vyshane>
Wed, 8 Mar 2006 04:54:57 +0000 (04:54 +0000)
committervyshane <vyshane>
Wed, 8 Mar 2006 04:54:57 +0000 (04:54 +0000)
mod/data/tabs.php

index 8cf7e431e9353eee9d4f0a59707921103bcd015a..b168259a2134b6b62d20a63c7bbc2158946a5cd8 100755 (executable)
     $inactive = NULL;
     $row = array();
     
-    $row[] = new tabobject('browse', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'));
+    $row[] = new tabobject('browse', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'), '', true);
     if (isteacher($course->id) or ($data->participants == PARTICIPANTS_S) or ($data->participants == PARTICIPANTS_TS)){
-        $row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, get_string('add','data'));
+        $row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, get_string('add','data'), '', true);
     }
     if (isteacher($course->id)) {
         $row[] = new tabobject('templates', $CFG->wwwroot.'/mod/data/templates.php?d='.$data->id.'&amp;mode=singletemplate', get_string('templates','data'));
-        $row[] = new tabobject('fields', $CFG->wwwroot.'/mod/data/fields.php?d='.$data->id, get_string('fields','data'));
+        $row[] = new tabobject('fields', $CFG->wwwroot.'/mod/data/fields.php?d='.$data->id, get_string('fields','data'), '', true);
     }
 
     $tabs[] = $row;
@@ -83,4 +83,4 @@
 
     print_tabs($tabs, $currenttab, $inactive);
     
-?>
+?>
\ No newline at end of file