--- loncom/interface/portfolio.pm 2006/08/08 21:34:05 1.151
+++ loncom/interface/portfolio.pm 2006/08/09 17:47:26 1.152
@@ -1,7 +1,7 @@
# The LearningOnline Network
# portfolio browser
#
-# $Id: portfolio.pm,v 1.151 2006/08/08 21:34:05 banghart Exp $
+# $Id: portfolio.pm,v 1.152 2006/08/09 17:47:26 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -167,7 +167,6 @@ sub display_directory_line {
my ($r,$select_mode,$fullpath, $filename, $mtime, $size, $css_class,
$line, $access_controls, $curr_access, $now, $version_flag,
$href_location, $url, $current_path, $access_admin_text, $versions)=@_;
- my %anchor_fields;
# my ($filename,$dom,undef,$testdir,undef,undef,undef,undef,$size,undef,$mtime,undef,undef,undef,$obs,undef)=split(/\&/,$line,16);
$r->print('
');
$r->print($line);
@@ -179,7 +178,7 @@ sub display_directory_line {
if ($select_mode ne 'true') {
$r->print(''.
&mt($curr_access).' ');
- %anchor_fields = (
+ my %anchor_fields = (
'access' => $filename,
'currentpath' => $current_path
);
@@ -192,7 +191,6 @@ sub display_directory {
my ($r,$url,$current_path,$is_empty,$dir_list,$group,$can_upload,
$can_modify,$can_delete,$can_setacl)=@_;
my $iconpath= $r->dir_config('lonIconsURL') . "/";
- my %anchor_fields;
my $display_out;
my $select_mode;
my $checked_files;
@@ -270,7 +268,7 @@ sub display_directory {
$show_versions = 'true';
}
if (exists($versioned{$filename})) {
- %anchor_fields = (
+ my %anchor_fields = (
'selectfile' => $filename,
'continue' => 'false',
'currentpath' => $current_path,
@@ -293,7 +291,7 @@ sub display_directory {
}
$r->print(' | ');
$r->print('Go to ... | ');
- %anchor_fields = (
+ my %anchor_fields = (
'selectfile' => $filename.'/',
'currentpath' => $current_path.$filename.'/',
'mode' => $env{"form.mode"},
@@ -315,7 +313,7 @@ sub display_directory {
$line.=' />';
} else {
if (exists $locked_files{$fullpath}) {
- %anchor_fields = (
+ my %anchor_fields = (
'lockinfo' => $current_path.$filename
);
$line.=''.&make_anchor($url,\%anchor_fields,'Locked').' | ';
@@ -332,7 +330,7 @@ sub display_directory {
if ($can_modify) {
my $cat=' ';
- %anchor_fields = (
+ my %anchor_fields = (
'rename' => $filename,
currentpath => $current_path
);
|