Merge branch 'MDL-64119-35' of git://github.com/junpataleta/moodle into MOODLE_35_STABLE
This commit is contained in:
@@ -2493,10 +2493,10 @@ class core_renderer extends renderer_base {
|
||||
* @return string
|
||||
*/
|
||||
protected function render_user_picture(user_picture $userpicture) {
|
||||
global $CFG, $DB, $PAGE;
|
||||
global $CFG, $DB;
|
||||
|
||||
$user = $userpicture->user;
|
||||
$canviewfullnames = has_capability('moodle/site:viewfullnames', $PAGE->context);
|
||||
$canviewfullnames = has_capability('moodle/site:viewfullnames', $this->page->context);
|
||||
|
||||
if ($userpicture->alttext) {
|
||||
if (!empty($user->imagealt)) {
|
||||
|
||||
Reference in New Issue
Block a user