Skip to content

Commit 80011a0

Browse files
INT-18928: Activity description duplicated in Open Forum
1 parent bdde285 commit 80011a0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

post.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,16 @@
577577
$formheading = get_string('yournewquestion', 'hsuforum');
578578
} else {
579579
$formheading = get_string('yournewtopic', 'hsuforum');
580+
// Hide duplicated hsuforum description when creating a new discussion topic, see INT-18928.
581+
$hidehtml = '';
582+
$hidehtml .= html_writer::start_tag('style', array('type' => 'text/css')) . "\n";
583+
$hidehtml .= '
584+
#page-mod-hsuforum-post .activity-description,
585+
#page-mod-hsuforum-post [role="main"] h2 {
586+
display: none;
587+
};';
588+
$hidehtml .= html_writer::end_tag('style') . "\n";
589+
echo $hidehtml;
580590
}
581591
}
582592

0 commit comments

Comments
 (0)