From 8caeea5c47de4323418baae3ad0064a35a795b28 Mon Sep 17 00:00:00 2001 From: Sara Arjona Date: Fri, 26 May 2023 10:21:48 +0200 Subject: [PATCH] MDL-73052 page: Fix page description when it has only an image This is as regression of MDL-72413, when description was moved to a standard module API. In some cases, when description has only images, it's was not displayed. --- mod/page/view.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/page/view.php b/mod/page/view.php index 3215f7468d0..1390d971173 100644 --- a/mod/page/view.php +++ b/mod/page/view.php @@ -59,7 +59,7 @@ $PAGE->set_url('/mod/page/view.php', array('id' => $cm->id)); $options = empty($page->displayoptions) ? [] : (array) unserialize_array($page->displayoptions); $activityheader = ['hidecompletion' => false]; -if (empty($options['printintro']) || !trim(strip_tags($page->intro))) { +if (empty($options['printintro'])) { $activityheader['description'] = ''; }