From d12cb320b3e1de60cac3e5ad4955a688540e1158 Mon Sep 17 00:00:00 2001 From: skodak Date: Tue, 6 Jun 2006 20:55:25 +0000 Subject: [PATCH] Bug #5659 - Problem with build-in buttons when creating templates; merged from MOODLE_16_STABLE --- mod/data/templates.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/data/templates.php b/mod/data/templates.php index bc8ffe51a0..cd168a3044 100755 --- a/mod/data/templates.php +++ b/mod/data/templates.php @@ -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 .= '" '; -- 2.39.5