]> git.mjollnir.org Git - moodle.git/commitdiff
Removed forum_get_course_forum for forum type teacher.
authorvyshane <vyshane>
Wed, 23 Aug 2006 07:05:36 +0000 (07:05 +0000)
committervyshane <vyshane>
Wed, 23 Aug 2006 07:05:36 +0000 (07:05 +0000)
blocks/admin/block_admin.php

index 212e77e2a993172452d8ac32aebd813665d3b24d..e5ac2246ec28abe4730070a97e0c586c44067aa3 100644 (file)
@@ -207,11 +207,6 @@ class block_admin extends block_list {
             $this->content->items[]='<a href="http://docs.moodle.org/'.$lang.'/Teacher_documentation">'.get_string('help').'</a>';
             $this->content->icons[]='<img src="'.$CFG->modpixpath.'/resource/icon.gif" alt="" />';
 
-            if ($teacherforum = forum_get_course_forum($this->instance->pageid, 'teacher')) {
-                $this->content->items[]='<a href="'.$CFG->wwwroot.'/mod/forum/view.php?f='.$teacherforum->id.'">'.get_string('nameteacher', 'forum').'</a>';
-                $this->content->icons[]='<img src="'.$CFG->modpixpath.'/forum/icon.gif" alt="" />';
-            }
-
         } else if (!isguest()) {  // Students menu
 
             if ($course->showgrades) {