MDL-45242 Lib: Replace calls to deprecated functions
In all cases changes have been kept to a minimum while not making the code completely horrible. For example, there are many instances where it would probably be better to rewrite a query entirely, but I have not done that (in order to reduce the risk of changes).
This commit is contained in:
@@ -230,7 +230,8 @@ class user_picture implements renderable {
|
||||
}
|
||||
|
||||
if ($needrec) {
|
||||
$this->user = $DB->get_record('user', array('id'=>$user->id), self::fields(), MUST_EXIST);
|
||||
$this->user = $DB->get_record('user', array('id'=>$user->id),
|
||||
implode(',', \core\user_fields::get_picture_fields()), MUST_EXIST);
|
||||
} else {
|
||||
$this->user = clone($user);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user