[LON-CAPA-cvs] cvs: loncom /interface lonsyllabus.pm

wenzelju wenzelju@source.lon-capa.org
Tue, 01 Dec 2009 13:34:54 -0000


wenzelju		Tue Dec  1 13:34:54 2009 EDT

  Modified files:              
    /loncom/interface	lonsyllabus.pm 
  Log:
  Added &Apache::lontemplate::print_template(...)-call for 'URLs To Include in Syllabus'.
  
  
Index: loncom/interface/lonsyllabus.pm
diff -u loncom/interface/lonsyllabus.pm:1.101 loncom/interface/lonsyllabus.pm:1.102
--- loncom/interface/lonsyllabus.pm:1.101	Thu Nov 26 05:21:43 2009
+++ loncom/interface/lonsyllabus.pm	Tue Dec  1 13:34:54 2009
@@ -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.102 2009/12/01 13:34:54 wenzelju Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -409,8 +409,11 @@
                         }
                     }
                     if ($allowed) {
-                        $r->print('<h3>'.$syllabusfields{$field}.
-                        &Apache::loncommon::help_open_topic('Syllabus_URLs').'</h3>');
+                        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);
                     }