[LON-CAPA-cvs] cvs: loncom /homework bridgetask.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 29 Mar 2006 14:04:45 -0000
albertel Wed Mar 29 09:04:45 2006 EDT
Modified files:
/loncom/homework bridgetask.pm
Log:
- revert 1.129
Index: loncom/homework/bridgetask.pm
diff -u loncom/homework/bridgetask.pm:1.129 loncom/homework/bridgetask.pm:1.130
--- loncom/homework/bridgetask.pm:1.129 Wed Mar 29 09:03:08 2006
+++ loncom/homework/bridgetask.pm Wed Mar 29 09:04:45 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.129 2006/03/29 14:03:08 albertel Exp $
+# $Id: bridgetask.pm,v 1.130 2006/03/29 14:04:45 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -455,7 +455,11 @@
my $files = '<ul>';
foreach my $file (@files) {
my $url="/uploaded/$domain/$user/portfolio$file";
- $file = '<tt>'.$file.'</tt>';
+ if (! &Apache::lonnet::stat_file($url)) {
+ $file = &mt('<font color="red"> Nonexistant file:</font> <tt>[_1]</tt>',$file);
+ } else {
+ $file = '<tt>'.$file.'</tt>';
+ }
$files .= '<li>'.$file.'</li>';
}
$files.='</ul>';