From 4c3f5b85412f7e7b235c1d6694ed132899c2638b Mon Sep 17 00:00:00 2001 From: Peter Dias Date: Thu, 23 Sep 2021 11:40:07 +0800 Subject: [PATCH] MDL-72413 questions: Disable the common activity header --- question/bank/editquestion/question.php | 1 + question/bank/exportquestions/export.php | 1 + question/bank/importquestions/import.php | 1 + question/bank/managecategories/category.php | 1 + question/edit.php | 1 + 5 files changed, 5 insertions(+) diff --git a/question/bank/editquestion/question.php b/question/bank/editquestion/question.php index aa1b68380b7b8..0403cf344af9d 100644 --- a/question/bank/editquestion/question.php +++ b/question/bank/editquestion/question.php @@ -337,6 +337,7 @@ $streditingquestion = $qtypeobj->get_heading(); $PAGE->set_title($streditingquestion); $PAGE->set_heading($COURSE->fullname); +$PAGE->activityheader->disable(); $PAGE->navbar->add($streditingquestion); // Display a heading, question editing form and possibly some extra content needed for diff --git a/question/bank/exportquestions/export.php b/question/bank/exportquestions/export.php index 7bc3ae2b7f757..c5a3a1e20b442 100644 --- a/question/bank/exportquestions/export.php +++ b/question/bank/exportquestions/export.php @@ -46,6 +46,7 @@ $PAGE->set_url($thispageurl); $PAGE->set_title($strexportquestions); $PAGE->set_heading($COURSE->fullname); +$PAGE->activityheader->disable(); // Print horizontal nav if needed. $renderer = $PAGE->get_renderer('core_question', 'bank'); diff --git a/question/bank/importquestions/import.php b/question/bank/importquestions/import.php index 62e3c8a1865a5..a1957ab7740fd 100644 --- a/question/bank/importquestions/import.php +++ b/question/bank/importquestions/import.php @@ -73,6 +73,7 @@ // Page header. $PAGE->set_title($txt->importquestions); $PAGE->set_heading($COURSE->fullname); +$PAGE->activityheader->disable(); // Print horizontal nav if needed. $renderer = $PAGE->get_renderer('core_question', 'bank'); diff --git a/question/bank/managecategories/category.php b/question/bank/managecategories/category.php index 96b55591d6bf9..a76021258bd31 100644 --- a/question/bank/managecategories/category.php +++ b/question/bank/managecategories/category.php @@ -147,6 +147,7 @@ $PAGE->set_title(get_string('editcategories', 'question')); $PAGE->set_heading($COURSE->fullname); +$PAGE->activityheader->disable(); // Print horizontal nav if needed. $renderer = $PAGE->get_renderer('core_question', 'bank'); diff --git a/question/edit.php b/question/edit.php index 2c7138a63407e..aaa3a9489452a 100644 --- a/question/edit.php +++ b/question/edit.php @@ -42,6 +42,7 @@ $streditingquestions = get_string('editquestions', 'question'); $PAGE->set_title($streditingquestions); $PAGE->set_heading($COURSE->fullname); +$PAGE->activityheader->disable(); // Print horizontal nav if needed. $renderer = $PAGE->get_renderer('core_question', 'bank');