--- loncom/interface/lonsyllabus.pm 2009/11/26 05:21:43 1.101
+++ loncom/interface/lonsyllabus.pm 2009/12/03 02:13:28 1.103
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Syllabus
#
-# $Id: lonsyllabus.pm,v 1.101 2009/11/26 05:21:43 faziophi Exp $
+# $Id: lonsyllabus.pm,v 1.103 2009/12/03 02:13:28 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -409,8 +409,11 @@ ENDSCRIPT
}
}
if ($allowed) {
- $r->print('
'.$syllabusfields{$field}.
- &Apache::loncommon::help_open_topic('Syllabus_URLs').'
');
+ if (!&Apache::lonfeedback::contains_block_html($urls)) {
+ &Apache::lonfeedback::newline_to_br(\$urls);
+ }
+ &Apache::lontemplate::print_template($r, $syllabusfields{$field}.
+ &Apache::loncommon::help_open_topic('Syllabus_URLs'), $urls,$allowed,'LC_Box');
} else {
$r->print($message);
}
@@ -418,7 +421,7 @@ ENDSCRIPT
if (!&Apache::lonfeedback::contains_block_html($message)) {
&Apache::lonfeedback::newline_to_br(\$message);
}
- $message =~s|(https?\://[^\s]+)|$1|g;
+ $message=&Apache::lonhtmlcommon::raw_href_to_link($message);
if ($allowed) {
$message=&Apache::lonspeller::markeduptext($message);
}