Skip to content

Commit

Permalink
Merge pull request #122 from lrskinner/116_description-appearing-twic…
Browse files Browse the repository at this point in the history
…e-4.1

Fix #116 - Description appearing twice in Moodle 4.1
  • Loading branch information
danmarsden authored Sep 22, 2023
2 parents a80e00a + 679d448 commit f398340
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 18 deletions.
3 changes: 0 additions & 3 deletions bulkopenrules.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@
$renderer = $PAGE->get_renderer('mod_dialogue');

echo $OUTPUT->header();
if (!empty($dialogue->activityrecord->intro)) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}

echo $renderer->tab_navigation($dialogue);

Expand Down
3 changes: 0 additions & 3 deletions conversation/create.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,5 @@
// Display form page.
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($activityrecord->name));
if (!empty($dialogue->activityrecord->intro)) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}
$form->display();
echo $OUTPUT->footer($course);
3 changes: 0 additions & 3 deletions conversation/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,5 @@
// Display form page.
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($activityrecord->name));
if (!empty($dialogue->activityrecord->intro)) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}
$form->display();
echo $OUTPUT->footer($course);
3 changes: 0 additions & 3 deletions drafts.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,6 @@
$renderer = $PAGE->get_renderer('mod_dialogue');

echo $OUTPUT->header();
if (!empty($dialogue->activityrecord->intro)) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}

echo $renderer->tab_navigation($dialogue);
$html = '';
Expand Down
3 changes: 0 additions & 3 deletions view.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@

echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($activityrecord->name));
if (!empty($dialogue->activityrecord->intro)) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}

// Render tab navigation, toggle button groups and order by dropdown.
echo $renderer->tab_navigation($dialogue);
Expand Down
3 changes: 0 additions & 3 deletions viewconversationsbyrole.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,6 @@

echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($activityrecord->name));
if (!empty($dialogue->activityrecord->intro)) {
echo $OUTPUT->box(format_module_intro('dialogue', $dialogue->activityrecord, $cm->id), 'generalbox', 'intro');
}

// Render tab navigation, toggle button groups and order by dropdown.
echo $renderer->tab_navigation($dialogue);
Expand Down

0 comments on commit f398340

Please sign in to comment.