]> git.mjollnir.org Git - moodle.git/commitdiff
Bug #5659 - Problem with build-in buttons when creating templates; merged from MOODLE...
authorskodak <skodak>
Tue, 6 Jun 2006 20:55:25 +0000 (20:55 +0000)
committerskodak <skodak>
Tue, 6 Jun 2006 20:55:25 +0000 (20:55 +0000)
mod/data/templates.php

index bc8ffe51a0352b12b3f6059fb9ee1607a9cb1a62..cd168a30442634c6dc8a30a4c6ba254a73eb2f85 100755 (executable)
@@ -77,7 +77,7 @@
     // For the javascript for inserting template tags: initialise the default textarea to
     // 'edit_template' - it is always present in all different possible views.
     $bodytag = 'onload="';
-    $bodytag .= 'if (typeof(currEditor) != \'undefined\') { currEditor = edit_template; } ';
+    $bodytag .= 'if (typeof(edit_template) != \'undefined\') { currEditor = edit_template; } ';
     $bodytag .= 'currTextarea = document.tempform.template;';
     $bodytag .= '" ';