[LON-CAPA-cvs] cvs: loncom /publisher lonpublisher.pm
www
lon-capa-cvs@mail.lon-capa.org
Tue, 18 Feb 2003 16:29:37 -0000
www Tue Feb 18 11:29:37 2003 EDT
Modified files:
/loncom/publisher lonpublisher.pm
Log:
Actually print the error message
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.109 loncom/publisher/lonpublisher.pm:1.110
--- loncom/publisher/lonpublisher.pm:1.109 Tue Feb 18 08:20:13 2003
+++ loncom/publisher/lonpublisher.pm Tue Feb 18 11:29:37 2003
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Publication Handler
#
-# $Id: lonpublisher.pm,v 1.109 2003/02/18 13:20:13 www Exp $
+# $Id: lonpublisher.pm,v 1.110 2003/02/18 16:29:37 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1201,14 +1201,16 @@
$target=~s/\/+/\//g;
if ($target=~/\_\_\_/) {
- return
- '<font color=red>Unsupported character combination "<tt>___</tt>" in filename, FAIL</font>';
+ $r->print(
+ '<font color=red>Unsupported character combination "<tt>___</tt>" in filename, FAIL</font>');
+ return 0;
}
$distarget=~s/\/+/\//g;
my $logfile;
unless ($logfile=Apache::File->new('>>'.$source.'.log')) {
- return
- '<font color=red>No write permission to user directory, FAIL</font>';
+ $r->print(
+ '<font color=red>No write permission to user directory, FAIL</font>');
+ return 0;
}
print $logfile
"\n================= Publish ".localtime()." Phase Two ================\n";