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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 03 Dec 2004 23:31:29 -0000


albertel		Fri Dec  3 18:31:29 2004 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - don't pur up forward/back etc buttons with remoteless CSTR user views resources in publication space (BUG#3660)
  
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.135 loncom/interface/lonmenu.pm:1.136
--- loncom/interface/lonmenu.pm:1.135	Fri Dec  3 17:10:39 2004
+++ loncom/interface/lonmenu.pm	Fri Dec  3 18:31:28 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.135 2004/12/03 22:10:39 albertel Exp $
+# $Id: lonmenu.pm,v 1.136 2004/12/03 23:31:28 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -396,7 +396,7 @@
 s&7&2&prt.gif&prepare[_1]&printout[_1]&gopost('/adm/printout','/~$uname/$thisdisfn')&Prepare a printable document
 ENDMENUITEMS
             }
-        } else {
+        } elsif (defined($ENV{'request.course.id'})) {
 	    $menuitems=(<<ENDMENUITEMS);
 c&3&1
 s&2&1&back.gif&backward[_1]&&gopost('/adm/flip','back:'+currentURL)&Go to the previous resource in the course sequence&1