--- loncom/publisher/lonupload.pm 2005/04/07 06:56:27 1.29
+++ loncom/publisher/lonupload.pm 2006/12/06 22:22:39 1.34
@@ -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.34 2006/12/06 22:22:39 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);
}
}
@@ -107,21 +100,15 @@ sub phaseone {
&upfile_store.'" />'.
''.&mt('Store uploaded file as ').
- "/priv/$uname/".
+ "/priv/$uname/".
'
');
- $r->print('
'.&mt('Please indicate the type of file you are uploading. The possible types of file are as follows:').'
-