--- loncom/interface/portfolio.pm 2004/09/09 17:53:59 1.40
+++ loncom/interface/portfolio.pm 2004/09/10 20:31:35 1.44
@@ -211,6 +211,9 @@ sub delete_dir_confirmed {
$r->print(' An error occured (dir) ('.$result.
') while trying to delete '.$directory_name.'
');
} else {
+ # now remove from recent
+# $r->print('
removing '.$directory_name.'
print(' No file was selected to upload.'.
'To upload a file, click Browse...'.
@@ -382,15 +376,31 @@ sub handler {
if ($ENV{'form.currentpath'}) {
$current_path = $ENV{'form.currentpath'};
}
- @dir_list=&Apache::lonnet::dirlist($current_path,
+ my @dir_list=&Apache::lonnet::dirlist($current_path,
$ENV{'user.domain'},
$ENV{'user.name'},$portfolio_root);
-
- # need to know if directory is empty so it can be removed if desired
- my $is_empty=(@dir_list == 2);
- &display_directory($r,$current_path,$is_empty,\@dir_list);
- $r->print("