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

raeburn raeburn at source.lon-capa.org
Sat Feb 25 14:43:16 EST 2017


raeburn		Sat Feb 25 19:43:16 2017 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  - Accommodate case where Syllabus is included in Main Content, so $resurl is 
    extracted from symb.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.468 loncom/interface/lonmenu.pm:1.469
--- loncom/interface/lonmenu.pm:1.468	Mon Feb 20 18:29:22 2017
+++ loncom/interface/lonmenu.pm	Sat Feb 25 19:43:16 2017
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.468 2017/02/20 18:29:22 raeburn Exp $
+# $Id: lonmenu.pm,v 1.469 2017/02/25 19:43:16 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1128,8 +1128,8 @@
 # This applies in course context
 #
         if (($perms{'mdc'}) &&
-            (($resurl eq "/public/$cdom/$cnum/syllabus") ||
-            ($resurl =~ m{^/uploaded/$cdom/$cnum/portfolio/syllabus/}))) {
+            (($resurl =~ m{^/?public/$cdom/$cnum/syllabus}) ||
+            ($resurl =~ m{^/?uploaded/$cdom/$cnum/portfolio/syllabus/}))) {
             $cfile = $resurl;
             $home = &Apache::lonnet::homeserver($cnum,$cdom);
             if ($env{'form.forceedit'}) {




More information about the LON-CAPA-cvs mailing list