From a4d220dc1790167bc1c2980eebd9718f20c9ac2f Mon Sep 17 00:00:00 2001 From: scyrma Date: Fri, 4 Jul 2008 08:47:26 +0000 Subject: [PATCH] Temporary fix to prevent PHP notice - this will be removed when the correct configuration items get committed. --- lib/editor/tinymce.js.php | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/lib/editor/tinymce.js.php b/lib/editor/tinymce.js.php index a5178ded12..1f6c48e27d 100644 --- a/lib/editor/tinymce.js.php +++ b/lib/editor/tinymce.js.php @@ -3,11 +3,10 @@ require_once('../../config.php'); $courseid = optional_param('course', 0, PARAM_INT); +$editorlanguage = substr(current_language(), 0, 2); +$directionality = get_string('thisdirection'); /* - * - * ******************************************************************************************************** - * * This section configures the TinyMCE toolbar buttons on and off * depending on the Moodle settings * @@ -16,6 +15,10 @@ $courseid = optional_param('course', 0, PARAM_INT); * on a role basis, course basis, user basis, etc. if so desired. * */ +if (empty($CFG->tinymcehidebuttons)) { + $CFG->tinymcehidebuttons = ''; +} + $editorhidebuttons = str_replace(' ', ',', $CFG->tinymcehidebuttons); $editorhidebuttons1 = $editorhidebuttons . ',visualaid,styleselect'; @@ -142,9 +145,10 @@ function createHTMLArea(id) { EOF; + echo <<httpswwwroot", @@ -153,11 +157,12 @@ echo <<httpswwwroot", @@ -166,7 +171,8 @@ echo <<