version 1.188, 2008/01/21 18:00:30
|
version 1.190, 2008/02/05 05:54:59
|
Line 538 sub delete {
|
Line 538 sub delete {
|
my @files=&Apache::loncommon::get_env_multiple('form.selectfile'); |
my @files=&Apache::loncommon::get_env_multiple('form.selectfile'); |
my ($uname,$udom) = &get_name_dom(); |
my ($uname,$udom) = &get_name_dom(); |
if (&Apache::lonnet::is_locked($file_name,$udom,$uname) eq 'true') { |
if (&Apache::lonnet::is_locked($file_name,$udom,$uname) eq 'true') { |
$r->print("The file is locked and cannot be deleted.<br />"); |
$r->print(&mt('The file is locked and cannot be deleted.').'<br />'); |
$r->print(&done('Back',$url)); |
$r->print(&done('Back',$url)); |
} else { |
} else { |
if (scalar(@files)) { |
if (scalar(@files)) { |
Line 679 sub rename_confirmed {
|
Line 679 sub rename_confirmed {
|
$chg_access = &access_for_renamed($filenewname,$group,$udom,$uname); |
$chg_access = &access_for_renamed($filenewname,$group,$udom,$uname); |
} else { |
} else { |
$r->print('<span class="LC_error">'. |
$r->print('<span class="LC_error">'. |
&mt('An error occurred ([_1]) while trying to rename [_2] to [_3]' |
&mt('An error occurred ([_1]) while trying to rename [_2] to [_3].' |
,$result,&display_file(),&display_file('',$filenewname)) |
,$result,&display_file(),&display_file('',$filenewname)) |
.'</span><br />'); |
.'</span><br />'); |
return; |
return; |
Line 823 sub view_access_settings {
|
Line 823 sub view_access_settings {
|
&build_access_summary($r,$count,$chg,%todisplay); |
&build_access_summary($r,$count,$chg,%todisplay); |
$r->print(&Apache::loncommon::end_data_table()); |
$r->print(&Apache::loncommon::end_data_table()); |
} else { |
} else { |
$r->print(&mt('No access controil settings currently exist for this file.').'<br />'); |
$r->print(&mt('No access control settings currently exist for this file.').'<br />'); |
} |
} |
my %anchor_fields = ( |
my %anchor_fields = ( |
'currentpath' => $env{'form.currentpath'} |
'currentpath' => $env{'form.currentpath'} |