From e18bc77b560f90aa163a548cd1753ad4df3a45bc Mon Sep 17 00:00:00 2001 From: jerome Date: Fri, 2 May 2008 06:14:36 +0000 Subject: [PATCH] MDL-11382 added a link 'Profil' to the administration block --- blocks/admin/block_admin.php | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/blocks/admin/block_admin.php b/blocks/admin/block_admin.php index 9a8031a4868..053757ab0af 100644 --- a/blocks/admin/block_admin.php +++ b/blocks/admin/block_admin.php @@ -172,30 +172,9 @@ class block_admin extends block_list { } } - /// Should the following two be in this block? - - - /// View own activity report -// if ($course->showreports) { -// $this->content->items[]=''.get_string('activityreport').''; -// $this->content->icons[]=''; -// } - - - /// Edit your own profile - -// $fullname = fullname($USER, has_capability('moodle/site:viewfullnames', $context)); -// $editmyprofile = ''.get_string('editmyprofile').''; -// if (empty($USER->description)) { -// //Accessibility: replace non-standard with CSS ( makes title visible in IE). -// $text = get_string('profile').' '.get_string('missingdescription'); -// $this->content->items[]= $editmyprofile.' *'.$text.''; -// } else { -// $this->content->items[]= $editmyprofile; -// } -// $this->content->icons[]=''; - - + /// Link to the user own profile + $this->content->items[]=''.get_string('profile').''; + $this->content->icons[]=''; return $this->content; }