From 1376ebb1c13c264a339f1a0d87b09807bbf00622 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 27 Dec 2004 02:29:46 +0000 Subject: [PATCH] Undoing the "login as student" link that chooses a student at random. --- blocks/admin/block_admin.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 069e5d28d1..cb9747cde2 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -90,16 +90,6 @@ class block_admin extends block_base { $this->content->items[]=''.get_string('turneditingon').''; } - if (!$course->student) { - $course->student = get_string('defaultcoursestudent'); - } - - if (!isset($USER->realuser) and - $student = get_field_sql('SELECT userid FROM '.$CFG->prefix.'user_students WHERE course = '.$course->id.' LIMIT 1')) { - $this->content->icons[]=''; - $this->content->items[]=''.get_string('loginas').' '.$course->student.''; - } - $this->content->items[]=''.get_string('settings').'...'; $this->content->icons[]=''; -- 2.39.5