Whoops accidentally checked insome head stuff I shouldn have.
This commit is contained in:
+1
-6
@@ -36,9 +36,6 @@
|
||||
|
||||
$row[] = new tabobject('list', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id, get_string('list','data'), '', true);
|
||||
|
||||
//Add an advanced search tab.
|
||||
$row[] = new tabobject('asearch', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&mode=asearch', get_string('advancedsearch', 'data'), '', true);
|
||||
|
||||
if (isset($record)) {
|
||||
$row[] = new tabobject('single', $CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$record->id, get_string('single','data'), '', true);
|
||||
} else {
|
||||
@@ -55,8 +52,6 @@
|
||||
$defaultemplate = 'listtemplate';
|
||||
} else if ($currenttab == 'add') {
|
||||
$defaultemplate = 'addtemplate';
|
||||
} else if ($currenttab == 'asearch') {
|
||||
$defaultemplate = 'asearchtemplate';
|
||||
} else {
|
||||
$defaultemplate = 'singletemplate';
|
||||
}
|
||||
@@ -75,7 +70,7 @@
|
||||
if ($currenttab == 'templates' and isset($mode)) {
|
||||
|
||||
$inactive[] = 'templates';
|
||||
$templatelist = array ('listtemplate', 'asearchtemplate' , 'singletemplate', 'addtemplate', 'rsstemplate', 'csstemplate', 'jstemplate');
|
||||
$templatelist = array ('listtemplate', 'singletemplate', 'addtemplate', 'rsstemplate', 'csstemplate', 'jstemplate');
|
||||
|
||||
$row = array();
|
||||
$currenttab ='';
|
||||
|
||||
Reference in New Issue
Block a user