Skip to content

Commit 32430fe

Browse files
authored
Merge pull request #102 from learnweb/fix/duplicate-title
Do not print module title and description, because moodle already does this
2 parents 16dd146 + dade288 commit 32430fe

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

discussion.php

-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@
140140

141141
// Start the side-output.
142142
echo $OUTPUT->header();
143-
echo $OUTPUT->heading(format_string($moodleoverflow->name), 3);
144143
echo $OUTPUT->heading(format_string($discussion->name), 1, 'discussionname');
145144

146145
// Guests and users can not subscribe to a discussion.

view.php

-8
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@
8989
// Output starts here.
9090
echo $OUTPUT->header();
9191

92-
// Show the name of the instance.
93-
echo $OUTPUT->heading(format_string($moodleoverflow->name), 2);
94-
9592
if ($moodleoverflow->anonymous > 0) {
9693
$strkeys = [
9794
\mod_moodleoverflow\anonymous::QUESTION_ANONYMOUS => 'desc:only_questions',
@@ -109,11 +106,6 @@
109106
echo html_writer::tag('p', get_string($strkeys[$reviewlevel], 'moodleoverflow'));
110107
}
111108

112-
// Show the description of the instance.
113-
if (!empty($moodleoverflow->intro)) {
114-
echo $OUTPUT->box(format_module_intro('moodleoverflow', $moodleoverflow, $cm->id), 'generalbox', 'intro');
115-
}
116-
117109
if (has_capability('mod/moodleoverflow:reviewpost', $context)) {
118110
$reviewpost = \mod_moodleoverflow\review::get_first_review_post($moodleoverflow->id);
119111

0 commit comments

Comments
 (0)