[LON-CAPA-cvs] cvs: loncom /publisher lonunauthorized.pm
raeburn
raeburn at source.lon-capa.org
Sun Nov 13 21:12:42 EST 2011
raeburn Mon Nov 14 02:12:42 2011 EDT
Modified files:
/loncom/publisher lonunauthorized.pm
Log:
- Pass $env{'request.editurl'} to &loncommon::authorspace()
so "Construction Space" breadcrumb points at appropriate author space.
Index: loncom/publisher/lonunauthorized.pm
diff -u loncom/publisher/lonunauthorized.pm:1.11 loncom/publisher/lonunauthorized.pm:1.12
--- loncom/publisher/lonunauthorized.pm:1.11 Sun Nov 13 01:07:09 2011
+++ loncom/publisher/lonunauthorized.pm Mon Nov 14 02:12:42 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network
# Unauthorized to access construction space
#
-# $Id: lonunauthorized.pm,v 1.11 2011/11/13 01:07:09 raeburn Exp $
+# $Id: lonunauthorized.pm,v 1.12 2011/11/14 02:12:42 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -57,7 +57,7 @@
if ($env{'request.role'} =~ /^(au|ca|aa)/) {
&Apache::lonhtmlcommon::add_breadcrumb({
'text' => 'Construction Space',
- 'href' => &Apache::loncommon::authorspace(),
+ 'href' => &Apache::loncommon::authorspace($env{'request.editurl'}),
});
} elsif (($env{'request.course.id'}) &&
(&Apache::lonnet::allowed('mdc',$env{'request.course.id'}))) {
More information about the LON-CAPA-cvs
mailing list