From 345ea0f7d4c29657abfff20de2b7a1649e6c1f22 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Fri, 2 Mar 2007 05:06:51 +0000 Subject: [PATCH] MDL-8597 - Fixed: weblib.php::print_speller_code was adding CDATA and '."\n"; + } } diff --git a/lib/weblib.php b/lib/weblib.php index 8af5024f3d6..0a577e52c4e 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3864,7 +3864,7 @@ function print_editor_config($editorhidebuttons='', $return=false) { } if (!empty($CFG->editorspelling) && !empty($CFG->aspellpath)) { - $str .= print_speller_code($usehtmleditor=true, true); + $str .= print_speller_code($CFG->htmleditor, true); } if ($return) { @@ -5378,17 +5378,17 @@ function print_side_block_end($attributes = array()) { /** * Prints out code needed for spellchecking. * Original idea by Ludo (Marc Alier). - * + * + * Opening CDATA and '."\n"; + if ($return) { return $str; }