[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonmenu.pm

raeburn raeburn at source.lon-capa.org
Sun May 12 13:51:47 EDT 2013


raeburn		Sun May 12 17:51:47 2013 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonmenu.pm 
  Log:
  - For 2.11
    - Changes in 1.413 omitted from earlier 1.369.2.39 backport.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.369.2.39 loncom/interface/lonmenu.pm:1.369.2.40
--- loncom/interface/lonmenu.pm:1.369.2.39	Sun May 12 00:40:24 2013
+++ loncom/interface/lonmenu.pm	Sun May 12 17:51:47 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.369.2.39 2013/05/12 00:40:24 raeburn Exp $
+# $Id: lonmenu.pm,v 1.369.2.40 2013/05/12 17:51:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -492,6 +492,10 @@
     }
     $menu =~ s/\[uname\]/$$author{user}/g;
     $menu =~ s/\[udom\]/$$author{dom}/g;
+    if ($showsyllabus || $showfeeds) {
+        $menu =~ s/\[cnum\]/$cnum/g;
+        $menu =~ s/\[cdom\]/$cdom/g;
+    }
     if ($menu) {
         $menu = "<ul id=\"LC_secondary_menu\">$menu</ul>";
     }




More information about the LON-CAPA-cvs mailing list