]> git.mjollnir.org Git - moodle.git/commitdiff
Whoops, wrong line, I am tired. :-)
authormoodler <moodler>
Wed, 29 Mar 2006 18:38:18 +0000 (18:38 +0000)
committermoodler <moodler>
Wed, 29 Mar 2006 18:38:18 +0000 (18:38 +0000)
mod/data/tabs.php

index 529e7b875957cf49e675f21d2fff92aca4b49ace..d37d3e3173faa2265515dfe0666a64400696c233 100755 (executable)
     $inactive = NULL;
     $row = array();
     
+    $row[] = new tabobject('list', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'), '', true);
+
     if (isset($record)) {
         $row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$record->id, get_string('detail','data'), '', true);
     } else {
         $row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&mode=single', get_string('detail','data'), '', true);
     }
 
-    $row[] = new tabobject('list', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('browse','data'), '', true);
     if (isteacher($course->id) or ($data->participants == DATA_STUDENTS_ONLY) or ($data->participants == DATA_TEACHERS_AND_STUDENTS)){
         $addstring = empty($rid) ? get_string('add', 'data') : get_string('editentry', 'data');
         $row[] = new tabobject('add', $CFG->wwwroot.'/mod/data/add.php?d='.$data->id, $addstring, '', true);
@@ -66,7 +67,7 @@
     *****************************/
     if ($currenttab == 'templates' and isset($mode)) {
         $inactive[] = 'templates';
-        $templatelist = array ('singletemplate', 'listtemplate', 'addtemplate', 'rsstemplate', 'csstemplate');
+        $templatelist = array ('listtemplate', 'singletemplate', 'addtemplate', 'rsstemplate', 'csstemplate');
 
         $row  = array();
         $currenttab ='';