diff --git a/.upgradenotes/MDL-75610-2024111313224921.yml b/.upgradenotes/MDL-75610-2024111313224921.yml new file mode 100644 index 0000000000000..99ce569894835 --- /dev/null +++ b/.upgradenotes/MDL-75610-2024111313224921.yml @@ -0,0 +1,19 @@ +issueNumber: MDL-75610 +notes: + core: + - message: > + `\core\output\activity_header` now uses the `is_title_allowed()` method + when setting the title in the constructor. + + + This method has been improved to give priority to the 'notitle' option + in the theme config for the current page layout, over the top-level + option in the theme. + + + For example, the Boost theme sets + `$THEME->activityheaderconfig['notitle'] = true;` by default, but in its + `secure` pagelayout, it has `'notitle' = false`. + + This prevents display of the title in all layouts except `secure`. + type: improved diff --git a/mod/quiz/accessrule/seb/tests/behat/secure_layout_activity_heading.feature b/mod/quiz/accessrule/seb/tests/behat/secure_layout_activity_heading.feature index 9c1f1b57e7ed4..c4e881d1c184d 100644 --- a/mod/quiz/accessrule/seb/tests/behat/secure_layout_activity_heading.feature +++ b/mod/quiz/accessrule/seb/tests/behat/secure_layout_activity_heading.feature @@ -35,4 +35,5 @@ Feature: View the activity header when Safe Exam Browser is required Scenario: Quiz description is displayed when Safe Exam Browser is required When I am on the "Test quiz name" "quiz activity" page logged in as student1 Then I should see "Launch Safe Exam Browser" + And "Test quiz name" "heading" should exist And I should see "Test quiz description" diff --git a/theme/boost/config.php b/theme/boost/config.php index 3ee7f1d1f3da7..4b1451d0c00cf 100644 --- a/theme/boost/config.php +++ b/theme/boost/config.php @@ -164,7 +164,12 @@ 'secure' => array( 'file' => 'secure.php', 'regions' => array('side-pre'), - 'defaultregion' => 'side-pre' + 'defaultregion' => 'side-pre', + 'options' => [ + 'activityheader' => [ + 'notitle' => false, + ], + ], ) ];