MDL-64119 output: Use context of renderer_base's page object
This commit is contained in:
committed by
Jun Pataleta
parent
f8c43813de
commit
30f7f010a9
@@ -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