[LON-CAPA-cvs] cvs: loncom /publisher loncfile.pm

raeburn raeburn at source.lon-capa.org
Sat Jun 14 17:40:05 EDT 2014


raeburn		Sat Jun 14 21:40:05 2014 EDT

  Modified files:              
    /loncom/publisher	loncfile.pm 
  Log:
  - Pass correct third arg to loncommon::excess_filesize_warning().
  - Eliminate unused scalar: $authorspace.
  
  
Index: loncom/publisher/loncfile.pm
diff -u loncom/publisher/loncfile.pm:1.121 loncom/publisher/loncfile.pm:1.122
--- loncom/publisher/loncfile.pm:1.121	Tue Jul 23 13:40:20 2013
+++ loncom/publisher/loncfile.pm	Sat Jun 14 21:40:05 2014
@@ -9,7 +9,7 @@
 #  and displays a page showing the results of the action.
 #
 #
-# $Id: loncfile.pm,v 1.121 2013/07/23 13:40:20 bisitz Exp $
+# $Id: loncfile.pm,v 1.122 2014/06/14 21:40:05 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -708,8 +708,7 @@
         my ($dir,$fname) = ($fn =~ m{^(.+/)([^/]+)$});
         my $filesize = $fileinfo[7];
         $filesize = int($filesize/1000); #expressed in kb
-        my $authorspace = $Apache::lonnet::perlvar{'lonDocRoot'}."/priv/$domain/$user";
-        my $output = &Apache::loncommon::excess_filesize_warning($user,$domain,$authorspace,
+        my $output = &Apache::loncommon::excess_filesize_warning($user,$domain,'author',
                                                                  $fname,$filesize,'copy');
         if ($output) {
             $request->print($output.'<br /><a href="'.&url($dir).'">'.&mt('Cancel').'</a></form>');




More information about the LON-CAPA-cvs mailing list