From: vyshane Date: Thu, 16 Mar 2006 03:56:19 +0000 (+0000) Subject: Updated print_textarea() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a0fd7c1df8e24853c75a7e479424f6e5a9e8de19;p=moodle.git Updated print_textarea() --- diff --git a/lib/weblib.php b/lib/weblib.php index 8b8f3e8193..68a5af8262 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -3147,7 +3147,8 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v $mincols = 65; $minrows = 10; - + $str = ''; + if ( empty($CFG->editorsrc) ) { // for backward compatibility. if (empty($courseid)) { if (!empty($course->id)) { // search for it in global context @@ -3162,10 +3163,10 @@ function print_textarea($usehtmleditor, $rows, $cols, $width, $height, $name, $v if ($usehtmleditor) { if (!empty($courseid) and isteacher($courseid)) { - $str = ($scriptcount < 1) ? ''."\n" : ''; } else { - $str = ($scriptcount < 1) ? ''."\n" : ''; } $str .= ($scriptcount < 1) ? '