[LON-CAPA-cvs] cvs: rat / lonratsrv.pm
www
lon-capa-cvs@mail.lon-capa.org
Fri, 23 Apr 2004 17:30:33 -0000
www Fri Apr 23 13:30:33 2004 EDT
Modified files:
/rat lonratsrv.pm
Log:
Bug #2942: no early outs. $errtext is not just for errors (sorry, not named
very well), but for any message to the user, including "Map saved as ..."
I don't think taking out this line hurts, since &loadmap will deliver empty
string anyway if loading fails.
Index: rat/lonratsrv.pm
diff -u rat/lonratsrv.pm:1.26 rat/lonratsrv.pm:1.27
--- rat/lonratsrv.pm:1.26 Mon Mar 29 14:44:41 2004
+++ rat/lonratsrv.pm Fri Apr 23 13:30:33 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Server for RAT Maps
#
-# $Id: lonratsrv.pm,v 1.26 2004/03/29 19:44:41 raeburn Exp $
+# $Id: lonratsrv.pm,v 1.27 2004/04/23 17:30:33 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -25,13 +25,7 @@
#
# http://www.lon-capa.org/
#
-# (Edit Handler for RAT Maps
-# (TeX Content Handler
-#
-# 05/29/00,05/30 Gerd Kortemeyer)
-# 7/1 Gerd Kortemeyer)
-# 7/1,7/3,7/4,7/7,7/8,7/10,7/26,10/2 Gerd Kortemeyer
-# 5/3,06/25,07/03,07/04,07/05 Gerd Kortemeyer
+
package Apache::lonratsrv;
@@ -67,7 +61,6 @@
sub loadmap {
my ($fn,$errtext)=@_;
- if ($errtext) { return('',$errtext); }
my $outstr='';
my @obj=();
my @links=();