[LON-CAPA-cvs] cvs: rat / map.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 03 Jan 2007 20:46:06 -0000
albertel Wed Jan 3 15:46:06 2007 EDT
Modified files:
/rat map.pm
Log:
- revert to not announcing a -1 as an error as it just indicates the file doesn't exist. In this case outstr will be returned with undef as it's value.
Index: rat/map.pm
diff -u rat/map.pm:1.3 rat/map.pm:1.4
--- rat/map.pm:1.3 Mon Dec 4 21:55:55 2006
+++ rat/map.pm Wed Jan 3 15:46:04 2007
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# routines for modyfing .sequence and .page files
#
-# $Id: map.pm,v 1.3 2006/12/05 02:55:55 albertel Exp $
+# $Id: map.pm,v 1.4 2007/01/03 20:46:04 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -476,7 +476,7 @@
if ($instr eq -2) {
$errtext.='Map not loaded: An error occured while trying to load the map.';
} elsif ($instr eq '-1') {
- $errtext.=&mt('Map not loaded: The file [_1] does not exist.',$fn);
+ # Map doesn't exist
} elsif ($instr) {
my $parser = HTML::TokeParser->new(\$instr);
my $token;