version 1.576, 2024/11/16 02:43:50
|
version 1.577, 2025/02/19 23:39:38
|
Line 1890 sub handler {
|
Line 1890 sub handler {
|
my $result = ''; |
my $result = ''; |
my $filecontents=&Apache::lonnet::getfile($file); |
my $filecontents=&Apache::lonnet::getfile($file); |
if ($filecontents eq -1) { |
if ($filecontents eq -1) { |
my $start_page=&Apache::loncommon::start_page('File Error'); |
my ($start_page,$end_page,$errormsg); |
my $end_page=&Apache::loncommon::end_page(); |
$start_page=&Apache::loncommon::start_page('File Error'); |
my $errormsg='<p class="LC_error">' |
if ($target eq 'web') { |
.&mt('File not found: [_1]' |
$start_page .= '<div class="LC_landmark" style="clear:both" role="menu">'. |
,'<span class="LC_filename">'.$file.'</span>') |
'<h1 class="LC_visually_hidden">'. |
.'</p>'; |
&mt('File not found').'</h1>'; |
|
$end_page = '</div>'; |
|
} |
|
$end_page .= &Apache::loncommon::end_page(); |
|
$errormsg='<p class="LC_error">' |
|
.&mt('File not found: [_1]' |
|
,'<span class="LC_filename">'.$file.'</span>') |
|
.'</p>'; |
$result=(<<ENDNOTFOUND); |
$result=(<<ENDNOTFOUND); |
$start_page |
$start_page |
$errormsg |
$errormsg |