[LON-CAPA-cvs] cvs: loncom /interface lonparmset.pm

raeburn raeburn at source.lon-capa.org
Sun Jul 3 00:31:07 EDT 2022


raeburn		Sun Jul  3 04:31:07 2022 EDT

  Modified files:              
    /loncom/interface	lonparmset.pm 
  Log:
  - Use name of scalar assigned to regexp match instead of numbered capture 
    group in last successful match.
  
  
Index: loncom/interface/lonparmset.pm
diff -u loncom/interface/lonparmset.pm:1.614 loncom/interface/lonparmset.pm:1.615
--- loncom/interface/lonparmset.pm:1.614	Tue May 31 14:16:29 2022
+++ loncom/interface/lonparmset.pm	Sun Jul  3 04:31:07 2022
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set parameters for assessments
 #
-# $Id: lonparmset.pm,v 1.614 2022/05/31 14:16:29 raeburn Exp $
+# $Id: lonparmset.pm,v 1.615 2022/07/03 04:31:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4902,7 +4902,7 @@
             }
             if ($is_map) {
                 my $leveltitle = &mt('Folder/Map');
-                my $title = &Apache::lonnet::gettitle($1);
+                my $title = &Apache::lonnet::gettitle($mapurl);
                 if (ref($hash_for_realm) eq 'HASH') {
                     if ($hash_for_realm->{$mapurl} eq '1') {
                         $title = &mt('Main Content');




More information about the LON-CAPA-cvs mailing list