]> git.mjollnir.org Git - moodle.git/commitdiff
merged, changepassword obsolete
authortoyomoyo <toyomoyo>
Wed, 31 May 2006 07:12:10 +0000 (07:12 +0000)
committertoyomoyo <toyomoyo>
Wed, 31 May 2006 07:12:10 +0000 (07:12 +0000)
blocks/admin/block_admin.php

index b3739f7665d22e8a6d8292982cd9575dadbe81ee..35c7d5c0d53a482f9caffbe39762034cbcb508eb 100644 (file)
@@ -226,10 +226,8 @@ class block_admin extends block_list {
             if (is_internal_auth() && !is_restricted_user($USER->username)) {
                 $this->content->items[]='<a href="'.$securewwwroot.'/login/change_password.php?id='.$this->instance->pageid.'">'.get_string('changepassword').'</a>';
                 $this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" alt="" />';
-            } else if ($CFG->changepassword && !is_restricted_user($USER->username)) {
-                $this->content->items[]='<a href="'.$CFG->changepassword.'">'.get_string('changepassword').'</a>';
-                $this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" alt="" />';
-            }
+            } 
+            
             if ($CFG->allowunenroll && !$course->metacourse) {
                 $this->content->items[]='<a href="unenrol.php?id='.$this->instance->pageid.'">'.get_string('unenrolme', '', $course->shortname).'</a>';
                 $this->content->icons[]='<img src="'.$CFG->pixpath.'/i/user.gif" alt="" />';