From a0fd7c1df8e24853c75a7e479424f6e5a9e8de19 Mon Sep 17 00:00:00 2001 From: vyshane Date: Thu, 16 Mar 2006 03:56:19 +0000 Subject: [PATCH] Updated print_textarea() --- lib/weblib.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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) ? '