[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonextresedit.pm
raeburn
raeburn at source.lon-capa.org
Sun Jul 28 00:10:32 EDT 2019
raeburn Sun Jul 28 04:10:32 2019 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonextresedit.pm
Log:
- For 2.11
Backport 1.15
Index: loncom/interface/lonextresedit.pm
diff -u loncom/interface/lonextresedit.pm:1.8.2.2 loncom/interface/lonextresedit.pm:1.8.2.3
--- loncom/interface/lonextresedit.pm:1.8.2.2 Tue Mar 14 21:09:20 2017
+++ loncom/interface/lonextresedit.pm Sun Jul 28 04:10:31 2019
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Documents
#
-# $Id: lonextresedit.pm,v 1.8.2.2 2017/03/14 21:09:20 raeburn Exp $
+# $Id: lonextresedit.pm,v 1.8.2.3 2019/07/28 04:10:31 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -298,7 +298,7 @@
}
sub display_editor {
- my ($url,$folderpath,$symb,$idx) = @_;
+ my ($url,$folderpath,$symb,$idx,$type,$cdom,$cnum,$hostname) = @_;
my ($residx,$supplementalflag,$title,$pathitem,$output,$js,$navmap);
if ($folderpath =~ /^supplemental/) {
$supplementalflag = 1;
@@ -314,6 +314,9 @@
}
$js = &Apache::lonhtmlcommon::scripttag(&extedit_javascript());
my $args = { 'force_register' => $env{'form.register'} };
+ if ($hostname) {
+ $args->{'hostname'} = $hostname;
+ }
return &Apache::loncommon::start_page('External Resource Editor',$js,$args).
'<div class="LC_left_float">'.
&extedit_form($supplementalflag,$residx,$url,$title,$pathitem,undef,'direct',$symb).
More information about the LON-CAPA-cvs
mailing list