[LON-CAPA-cvs] cvs: loncom /interface lonsearchcourse.pm
raeburn
raeburn at source.lon-capa.org
Sun Feb 11 22:39:38 EST 2024
raeburn Mon Feb 12 03:39:38 2024 EDT
Modified files:
/loncom/interface lonsearchcourse.pm
Log:
- Use different name for element in dependencies array, as $url is already
used for URL of resource itself.
Index: loncom/interface/lonsearchcourse.pm
diff -u loncom/interface/lonsearchcourse.pm:1.12 loncom/interface/lonsearchcourse.pm:1.13
--- loncom/interface/lonsearchcourse.pm:1.12 Sun Feb 11 23:03:13 2024
+++ loncom/interface/lonsearchcourse.pm Mon Feb 12 03:39:38 2024
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Search Course
#
-# $Id: lonsearchcourse.pm,v 1.12 2024/02/11 23:03:13 raeburn Exp $
+# $Id: lonsearchcourse.pm,v 1.13 2024/02/12 03:39:38 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -296,9 +296,9 @@
# Check also the dependencies of this one
my $dependencies=
&Apache::lonnet::metadata($url,'dependencies');
- foreach my $url (split(/\,/,$dependencies)) {
- if (($url =~ /^\/res\//) && (!$alreadyseen{$id})) {
- &checkonthis($r,$id,$url,$level+1,'',$fulltext,undef,$target, at allwords);
+ foreach my $item (split(/\,/,$dependencies)) {
+ if (($item =~ /^\/res\//) && (!$alreadyseen{$id})) {
+ &checkonthis($r,$id,$item,$level+1,'',$fulltext,undef,$target, at allwords);
}
}
}
More information about the LON-CAPA-cvs
mailing list