]> git.mjollnir.org Git - moodle.git/commitdiff
Don't use isteacher()
authormoodler <moodler>
Wed, 15 Mar 2006 10:05:19 +0000 (10:05 +0000)
committermoodler <moodler>
Wed, 15 Mar 2006 10:05:19 +0000 (10:05 +0000)
lib/weblib.php

index 89b530b7c9d264d0fe7ebd17315bfad44d9a472c..05828ff10284f80893f4b3512e2e48e02ebe8845 100644 (file)
@@ -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
+?>