--- loncom/interface/portfolio.pm 2006/10/19 20:36:12 1.165
+++ loncom/interface/portfolio.pm 2006/10/19 21:23:22 1.166
@@ -1,7 +1,7 @@
# The LearningOnline Network
# portfolio browser
#
-# $Id: portfolio.pm,v 1.165 2006/10/19 20:36:12 albertel Exp $
+# $Id: portfolio.pm,v 1.166 2006/10/19 21:23:22 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -550,9 +550,10 @@ sub delete_confirmed {
$env{'form.currentpath'}.
$delete_file);
if ($result ne 'ok') {
- $r->print(' An error occured ('.$result.
- ') while trying to delete '.
- &display_file(undef, $delete_file).'
');
+ $r->print(''.
+ &mt('An error occured ([_1]) while trying to delete
+ [_2].',$result,&display_file(undef, $delete_file)).
+ '
');
} else {
$r->print(&mt('File: [_1] deleted.',
&display_file(undef,$delete_file)));
@@ -563,7 +564,7 @@ sub delete_confirmed {
$group,$file_name);
if (keys(%access_controls) > 0) {
my %changes;
- foreach my $key (%{$access_controls{$file_name}}) {
+ foreach my $key (keys(%{$access_controls{$file_name}})) {
$changes{'delete'}{$key} = 1;
}
if (keys(%changes) > 0) {
@@ -573,15 +574,15 @@ sub delete_confirmed {
if ($outcome ne 'ok') {
$r->print('
'.&mt("An error occured ([_1]) while ".
"trying to delete access controls for the file.",$outcome).
- '
');
+ '
');
} else {
if ($deloutcome eq 'ok') {
- $r->print('
'.&mt('Access controls also deleted for the file.'));
+ $r->print('
'.&mt('Access controls also deleted for the file.').'
');
} else {
$r->print(''.'
'.
&mt("An error occured ([_1]) while ".
"trying to delete access controls for the file.",$deloutcome).
- '
');
+ '
');
}
}
}