From 666cce74e5466d573032dcc34103f0a1787beee1 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Thu, 28 Jan 2021 14:08:45 +0800 Subject: [PATCH] MDL-48269 group: Remove additional occurrences of hidepicture --- group/classes/output/group_details.php | 2 +- group/overview.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/group/classes/output/group_details.php b/group/classes/output/group_details.php index 11d4a62e078..aaf61a94009 100644 --- a/group/classes/output/group_details.php +++ b/group/classes/output/group_details.php @@ -60,7 +60,7 @@ class group_details implements renderable, templatable { */ public function export_for_template(renderer_base $output) { - if (!empty($this->group->description) || (!empty($this->group->picture) && empty($this->group->hidepicture))) { + if (!empty($this->group->description) || (!empty($this->group->picture))) { $context = context_course::instance($this->group->courseid); $description = file_rewrite_pluginfile_urls($this->group->description, 'pluginfile.php', diff --git a/group/overview.php b/group/overview.php index 5c23992cc19..fcbf697da24 100644 --- a/group/overview.php +++ b/group/overview.php @@ -152,7 +152,6 @@ $groups[OVERVIEW_NO_GROUP] = (object)array( 'descriptionformat' => FORMAT_HTML, 'enrolmentkey' => '', 'picture' => 0, - 'hidepicture' => 0, 'timecreated' => 0, 'timemodified' => 0, );