version 1.138.2.4, 2019/07/27 19:05:10
|
version 1.144, 2018/12/27 18:14:25
|
Line 178 sub handler {
|
Line 178 sub handler {
|
&Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); |
&Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); |
} |
} |
$r->print(&Apache::lonwrapper::wrapper($item,$brcrum,$env{'request.use_absolute'}, |
$r->print(&Apache::lonwrapper::wrapper($item,$brcrum,$env{'request.use_absolute'}, |
undef,$is_pdf,&mt('Syllabus'))); |
undef,$is_pdf,undef,&mt('Syllabus'))); |
} |
} |
} |
} |
return OK; |
return OK; |
Line 205 sub handler {
|
Line 205 sub handler {
|
&Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); |
&Apache::lonhtmlcommon::docs_breadcrumbs(undef,$crstype,undef,$title,1); |
} |
} |
$r->print(&Apache::lonwrapper::wrapper($external,$brcrum,$env{'request.use_absolute'}, |
$r->print(&Apache::lonwrapper::wrapper($external,$brcrum,$env{'request.use_absolute'}, |
$is_ext,$is_pdf,&mt('Syllabus'))); |
$is_ext,$is_pdf,undef,&mt('Syllabus'))); |
} |
} |
return OK; |
return OK; |
} |
} |
Line 311 sub handler {
|
Line 311 sub handler {
|
$protocol = 'http' if ($protocol ne 'https'); |
$protocol = 'http' if ($protocol ne 'https'); |
my $link = $r->uri; |
my $link = $r->uri; |
if (($protocol eq 'https') && ($external =~ m{^http://})) { |
if (($protocol eq 'https') && ($external =~ m{^http://})) { |
unless (&Apache::lonnet::uses_sts()) { |
$link .= '?usehttp=1'; |
$link .= '?usehttp=1'; |
$protocol = 'http'; |
$protocol = 'http'; |
|
} |
|
} |
} |
$link = $protocol.'://'.$hostname.$link; |
$link = $protocol.'://'.$hostname.$link; |
$r->print('<div class="LC_left_float">' |
$r->print('<div class="LC_left_float">' |
Line 1315 sub save_changes {
|
Line 1313 sub save_changes {
|
&mt('An error occurred storing the external URL: [_1]',$putres). |
&mt('An error occurred storing the external URL: [_1]',$putres). |
'</div>'; |
'</div>'; |
} |
} |
$is_ext = $external; |
|
} |
} |
|
$is_ext = $external; |
} else { |
} else { |
$output = '<div class="LC_error">'. |
$output = '<div class="LC_error">'. |
&mt('External URL not saved -- invalid URL.'). |
&mt('External URL not saved -- invalid URL.'). |