From e7fea100282733baa5fb1abe0820c6f429929450 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 15 Mar 2006 10:05:19 +0000 Subject: [PATCH] Don't use isteacher() --- lib/weblib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/weblib.php b/lib/weblib.php index 89b530b7c9..05828ff102 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -4759,7 +4759,7 @@ function print_tabs($tabrows, $selected=NULL, $inactive=NULL, $activetwo=NULL, $ function page_doc_link($text='', $iconpath='') { global $ME, $CFG; - if (empty($CFG->docroot) || !isteacher()) { + if (empty($CFG->docroot) || !isteacherinanycourse()) { return ''; } @@ -4784,4 +4784,4 @@ function page_doc_link($text='', $iconpath='') { // vim:autoindent:expandtab:shiftwidth=4:tabstop=4:tw=140: -?> \ No newline at end of file +?> -- 2.39.5