--- loncom/homework/lonhomework.pm 2002/12/05 22:59:37 1.103 +++ loncom/homework/lonhomework.pm 2002/12/11 15:33:55 1.105 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.103 2002/12/05 22:59:37 albertel Exp $ +# $Id: lonhomework.pm,v 1.105 2002/12/11 15:33:55 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -470,7 +470,7 @@ sub get_template_list { $result=$file; last; } else { - push (@allnames, $name); + if ($name) { push (@allnames, $name); } } } if (@allnames && !$result) { @@ -506,18 +506,21 @@ sub newproblem { my $url=$request->uri; my $dest = &Apache::lonnet::filelocation("",$request->uri); my $instructions; - if ($templatelist) { $instructions=", select a template from the pull-down menu below. Then";} + if ($templatelist) { $instructions=", select a template from the pull-down menu below.
Then";} $request->print(< -The requested file $url doesn\'t exist.
-To create a new $extension$instructions click on the Create $extension button. -
+

Creating a new $extension resource

+The requested file $url currently does not exist. +

+To create a new $extension$instructions click on the "Create $extension" button. +

+

ENDNEWPROBLEM if (defined($templatelist)) { $request->print(""); } $request->print("
"); - $request->print("

"); + $request->print("

"); } return ''; }