--- loncom/publisher/lonupload.pm 2005/04/07 06:56:27 1.29
+++ loncom/publisher/lonupload.pm 2007/05/02 01:34:23 1.35
@@ -2,7 +2,7 @@
# The LearningOnline Network with CAPA
# Handler to upload files into construction space
#
-# $Id: lonupload.pm,v 1.29 2005/04/07 06:56:27 albertel Exp $
+# $Id: lonupload.pm,v 1.35 2007/05/02 01:34:23 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -37,26 +37,19 @@ use File::Basename;
use Apache::Constants qw(:common :http :methods);
use Apache::loncacc;
use Apache::loncommon();
-use Apache::Log();
use Apache::lonnet;
use HTML::Entities();
use Apache::lonlocal;
use Apache::lonnet;
+use LONCAPA();
my $DEBUG=0;
sub Debug {
-
- # Marshall the parameters.
-
- my $r = shift;
- my $log = $r->log;
- my $message = shift;
-
- # Put out the indicated message butonly if DEBUG is false.
-
+ # Put out the indicated message but only if DEBUG is true.
if ($DEBUG) {
- $log->debug($message);
+ my ($r,$message) = @_;
+ $r->log_reason($message);
}
}
@@ -106,44 +99,38 @@ sub phaseone {
''.
''.&mt('Store uploaded file as ').
- "/priv/$uname/".
+ '" />'.&mt('Save uploaded file as ').
+ "/priv/$uname/".
'
');
- $r->print('
'.&mt('Please indicate the type of file you are uploading. The possible types of file are as follows:').'
-