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

raeburn raeburn at source.lon-capa.org
Thu Dec 27 00:34:07 EST 2012


raeburn		Thu Dec 27 05:34:07 2012 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Fix indentation in changes in 1.402.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.402 loncom/interface/lonmenu.pm:1.403
--- loncom/interface/lonmenu.pm:1.402	Thu Dec 27 05:28:33 2012
+++ loncom/interface/lonmenu.pm	Thu Dec 27 05:34:07 2012
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.402 2012/12/27 05:28:33 raeburn Exp $
+# $Id: lonmenu.pm,v 1.403 2012/12/27 05:34:07 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1707,18 +1707,18 @@
         }
         foreach my $role (sort(keys(%courseroles))) {
             if ($role =~ /^cr/) {
-                 my $include;
-                 if ($env{'request.role'} =~ m{^\Q$role\E}) {
+                my $include;
+                if ($env{'request.role'} =~ m{^\Q$role\E}) {
                     if ($seccount{$role} > 1) {
                         $include = 1;
                     }
-                 } else {
-                     $include = 1; 
-                 }
-                 if ($include) {
-                     push(@submenu,['javascript:adhocRole('."'$role'".')',
-                                    &Apache::lonnet::plaintext($role)]);
-                 }
+                } else {
+                    $include = 1; 
+                }
+                if ($include) {
+                    push(@submenu,['javascript:adhocRole('."'$role'".')',
+                                   &Apache::lonnet::plaintext($role)]);
+                }
             }
         }
         if (@submenu > 0) {




More information about the LON-CAPA-cvs mailing list