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

raeburn raeburn at source.lon-capa.org
Tue Mar 1 19:51:16 EST 2016


raeburn		Wed Mar  2 00:51:16 2016 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - Fix some typos.
  - 0 is a valid section name.
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.512 loncom/interface/lonnavmaps.pm:1.513
--- loncom/interface/lonnavmaps.pm:1.512	Mon Feb 22 03:37:02 2016
+++ loncom/interface/lonnavmaps.pm	Wed Mar  2 00:51:15 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.512 2016/02/22 03:37:02 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.513 2016/03/02 00:51:15 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2881,7 +2881,7 @@
     # 
     # We want the course level stuff from the way
     # parmval_real operates 
-    # TODO: Fator some of this stuff out of
+    # TODO: Factor some of this stuff out of
     # both parmval_real and here
     #
     my $courselevel = $cid . '.' .  $what;
@@ -2898,7 +2898,7 @@
     }
     # Try for the group's course level option:
 
-    if ($uname ne '' and defined($courseopt)) {
+    if ($cgroup ne '' and defined($courseopt)) {
 	if (defined($$courseopt{$grplevel})) {
 	    return $$courseopt{$grplevel};
 	}
@@ -2906,12 +2906,12 @@
 
     #  Try for section level parameters:
 
-    if ($csec and defined($courseopt)) {
+    if ($csec ne '' and defined($courseopt)) {
 	if (defined($$courseopt{$seclevel})) {
 	    return $$courseopt{$seclevel};
 	}
     }
-    # Try for 'additional' course parameterse:
+    # Try for 'additional' course parameters:
 
     if (defined($courseopt)) {
 	if (defined($$courseopt{$courselevel})) {




More information about the LON-CAPA-cvs mailing list