From: Petr Skoda Date: Thu, 1 Jul 2010 07:05:03 +0000 (+0000) Subject: MDL-22910 oh, I have introduced email requirement field into user picture too, sorry X-Git-Tag: v2.0.0-rc1~2485 X-Git-Url: http://git.moodle.org/gw?p=moodle.git;a=commitdiff_plain;h=d693882f7f1e735c2af3f628a38cfe62f35c7568 MDL-22910 oh, I have introduced email requirement field into user picture too, sorry --- diff --git a/lib/outputcomponents.php b/lib/outputcomponents.php index 71b507c51e9..deb3a6b85e8 100644 --- a/lib/outputcomponents.php +++ b/lib/outputcomponents.php @@ -296,7 +296,7 @@ class user_picture implements renderable { * List of mandatory fields in user record here. * @var string */ - const FIELDS = 'id,picture,firstname,lastname,imagealt,email'; //note: the email will be useful for gravatar support int the future ;-) + const FIELDS = 'id,picture,firstname,lastname,imagealt'; //TODO: add email, but first update all places that call user_picture(), this is necessary for gravatar support /** * @var object $user A user object with at least fields all columns specified in FIELDS constant set.