Skip to content

Commit

Permalink
MDL-72413 questions: Disable the common activity header
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Dias committed Dec 13, 2021
1 parent 4682044 commit 4c3f5b8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions question/bank/editquestion/question.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions question/bank/exportquestions/export.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions question/bank/importquestions/import.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions question/bank/managecategories/category.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
1 change: 1 addition & 0 deletions question/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 4c3f5b8

Please sign in to comment.