version 1.1492, 2022/09/18 22:33:45
|
version 1.1493, 2022/10/07 12:53:32
|
Line 12416 sub courselti_itemid {
|
Line 12416 sub courselti_itemid {
|
$chome = &homeserver($cnum,$cdom); |
$chome = &homeserver($cnum,$cdom); |
return if ($chome eq 'no_host'); |
return if ($chome eq 'no_host'); |
if (ref($params) eq 'HASH') { |
if (ref($params) eq 'HASH') { |
my $items = &freeze_escape($params); |
|
my $rep; |
my $rep; |
if (grep { $_ eq $chome } current_machine_ids()) { |
if (grep { $_ eq $chome } current_machine_ids()) { |
$rep = LONCAPA::Lond::crslti_itemid($cdom,$cnum,$url,$method,$params,$perlvar{'lonVersion'}); |
$rep = LONCAPA::Lond::crslti_itemid($cdom,$cnum,$url,$method,$params,$perlvar{'lonVersion'}); |
Line 12440 sub domainlti_itemid {
|
Line 12439 sub domainlti_itemid {
|
$primary_id = &domain($cdom,'primary'); |
$primary_id = &domain($cdom,'primary'); |
return if ($primary_id eq ''); |
return if ($primary_id eq ''); |
if (ref($params) eq 'HASH') { |
if (ref($params) eq 'HASH') { |
my $items = &freeze_escape($params); |
|
my $rep; |
my $rep; |
if (grep { $_ eq $primary_id } current_machine_ids()) { |
if (grep { $_ eq $primary_id } current_machine_ids()) { |
$rep = LONCAPA::Lond::domlti_itemid($cdom,$context,$url,$method,$params,$perlvar{'lonVersion'}); |
$rep = LONCAPA::Lond::domlti_itemid($cdom,$context,$url,$method,$params,$perlvar{'lonVersion'}); |