Skip to content

Commit

Permalink
MDL-74781 search: Fix heading repetition in global search page
Browse files Browse the repository at this point in the history
  • Loading branch information
aya-saad1 committed Jun 26, 2022
1 parent ceb4158 commit 165d983
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions search/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
if (\core_search\manager::is_global_search_enabled() === false) {
$PAGE->set_url(new moodle_url('/search/index.php'));
echo $OUTPUT->header();
echo $OUTPUT->heading($pagetitle);
echo $searchrenderer->render_search_disabled();
echo $OUTPUT->footer();
exit;
Expand Down Expand Up @@ -169,7 +168,6 @@

// We are ready to render.
echo $OUTPUT->header();
echo $OUTPUT->heading($pagetitle);

// Get the results.
if ($data) {
Expand Down

0 comments on commit 165d983

Please sign in to comment.