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

raeburn raeburn at source.lon-capa.org
Thu Jan 3 15:16:23 EST 2013


raeburn		Thu Jan  3 20:16:23 2013 EDT

  Modified files:              
    /loncom/interface	mydesk.tab lonmenu.pm 
  Log:
  - Course Requests item removed from "Personal" drop-down list, as it is
    now included in Functions menu on roles/courses page.
  - Coding style $array[index] preferred to @array[index] when index is a 
    single, scalar, value.
  
  
Index: loncom/interface/mydesk.tab
diff -u loncom/interface/mydesk.tab:1.156 loncom/interface/mydesk.tab:1.157
--- loncom/interface/mydesk.tab:1.156	Sat Dec 29 17:37:21 2012
+++ loncom/interface/mydesk.tab	Thu Jan  3 20:16:22 2013
@@ -46,7 +46,6 @@
 primsub:Personal:/adm/wishlist:Stored Links:wishlist
 primsub:Personal:/adm/announcements:Calendar:
 primsub:Personal:/adm/[domain]/[user]/_rss.html:Feeds:blog
-primsub:Personal:/adm/requestcourse:Course Requests:reqcrs
 
 # secondary menu links
 # Apache::lonmenu::secondary_menu() generates a menu from these elements
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.406 loncom/interface/lonmenu.pm:1.407
--- loncom/interface/lonmenu.pm:1.406	Mon Dec 31 14:29:08 2012
+++ loncom/interface/lonmenu.pm	Thu Jan  3 20:16:22 2013
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.406 2012/12/31 14:29:08 raeburn Exp $
+# $Id: lonmenu.pm,v 1.407 2013/01/03 20:16:22 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -248,7 +248,6 @@
             if (ref($primary_submenu{$title}) eq 'ARRAY') {
                 foreach my $item (@{$primary_submenu{$title}}) {
                     next if (($item->[2] eq 'wishlist') && (!$env{'user.adv'}));
-                    next if (($item->[2] eq 'reqcrs') && (!&check_for_rcrs()));
                     next if ((($item->[2] eq 'portfolio') ||
                              ($item->[2] eq 'blog')) &&
                              (!&Apache::lonnet::usertools_access('','',$item->[2],
@@ -990,7 +989,7 @@
             'advtools', @funcs[61,71,72,73,74,92]);
     } elsif ($env{'request.noversionuri'} eq '/adm/viewclasslist') {
         &Apache::lonhtmlcommon::add_breadcrumb_tool(
-            'advtools', @funcs[61]);
+            'advtools', $funcs[61]);
     }
 }
 




More information about the LON-CAPA-cvs mailing list