[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm
raeburn
raeburn at source.lon-capa.org
Sun Apr 9 22:45:45 EDT 2017
raeburn Mon Apr 10 02:45:45 2017 EDT
Modified files:
/loncom/interface lonmenu.pm
Log:
- Pass absolute link not relative link to syllabus to &get_editbutton().
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.469 loncom/interface/lonmenu.pm:1.470
--- loncom/interface/lonmenu.pm:1.469 Sat Feb 25 19:43:16 2017
+++ loncom/interface/lonmenu.pm Mon Apr 10 02:45:45 2017
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines to control the menu
#
-# $Id: lonmenu.pm,v 1.469 2017/02/25 19:43:16 raeburn Exp $
+# $Id: lonmenu.pm,v 1.470 2017/04/10 02:45:45 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1130,7 +1130,11 @@
if (($perms{'mdc'}) &&
(($resurl =~ m{^/?public/$cdom/$cnum/syllabus}) ||
($resurl =~ m{^/?uploaded/$cdom/$cnum/portfolio/syllabus/}))) {
- $cfile = $resurl;
+ if ($resurl =~ m{^/}) {
+ $cfile = $resurl;
+ } else {
+ $cfile = "/$resurl";
+ }
$home = &Apache::lonnet::homeserver($cnum,$cdom);
if ($env{'form.forceedit'}) {
$forceview = 1;
More information about the LON-CAPA-cvs
mailing list