]> git.mjollnir.org Git - moodle.git/commitdiff
Merged from 1.6. Fix for Bug #5682 - 'Reset template' button in CSS template
authorvyshane <vyshane>
Fri, 2 Jun 2006 04:29:11 +0000 (04:29 +0000)
committervyshane <vyshane>
Fri, 2 Jun 2006 04:29:11 +0000 (04:29 +0000)
adds HTML.

mod/data/lib.php

index 70d17ca991bd62ddf9cac21cbbb4b7844f49a88c..2d3c2fcbc17a51020ea90f94bbde1753e8047915 100755 (executable)
@@ -325,6 +325,9 @@ function data_generate_default_template(&$data, $template, $recordid=0, $form=fa
     if (!$data && !$template) {
         return false;
     }
+    if ($template == 'csstemplate') {
+        return '';
+    }
     
     //get all the fields for that database
     if ($fields = get_records('data_fields', 'dataid', $data->id, 'id')) {