]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-5671 html editor can now be switched off on the fly while editing database templa...
authorskodak <skodak>
Sun, 10 Dec 2006 22:15:15 +0000 (22:15 +0000)
committerskodak <skodak>
Sun, 10 Dec 2006 22:15:15 +0000 (22:15 +0000)
mod/data/templates.php

index 046241f20f4200ae47eecb2992d3c613098c223a..453a97e167114a71085dde976c905062c289d0d8 100755 (executable)
     }
     echo '</select>';
     echo '<br /><br /><br /><br /><input type="submit" name="defaultform" value="'.get_string('resettemplate','data').'" />';
-    if (can_use_html_editor()) {
+    if (can_use_html_editor() && ($mode != 'csstemplate') && ($mode != 'jstemplate')) {
         echo '<br /><br />';
         if ($editor) {
             $switcheditor = get_string('editordisable', 'data');