--- loncom/interface/lonhtmlcommon.pm 2009/11/18 11:18:23 1.244
+++ loncom/interface/lonhtmlcommon.pm 2009/11/21 22:36:23 1.247
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# a pile of common html routines
#
-# $Id: lonhtmlcommon.pm,v 1.244 2009/11/18 11:18:23 droeschl Exp $
+# $Id: lonhtmlcommon.pm,v 1.247 2009/11/21 22:36:23 www Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -62,6 +62,16 @@ use Apache::lonlocal;
use Apache::lonnet;
use LONCAPA;
+
+sub coursepreflink {
+ my ($text,$category)=@_;
+ if (&Apache::lonnet::allowed('opa',$env{'request.course.id'})) {
+ return ''.$text.'';
+ } else {
+ return '';
+ }
+}
+
##############################################
##############################################
@@ -111,7 +121,7 @@ sub dragmath_button {
}
my $buttontext=&mt('Edit Math');
return <$help_text
+ $help_text
ENDDRAGMATH
}
@@ -1473,6 +1483,10 @@ returns: nothing
push @{$tools{$category}}, $html;
}
+ sub clear_breadcrumb_tools {
+ undef(%tools);
+ }
+
sub add_tools {
my ($links) = @_;
return unless defined %tools;
@@ -2401,8 +2415,7 @@ Returns: HTML code with function list en
##############################################
sub end_funclist {
- my($r)=@_;
- return "\n\n";
+ return "\n";
}
1;