File tree Expand file tree Collapse file tree 2 files changed +1
-1
lines changed
Expand file tree Collapse file tree 2 files changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -680,6 +680,7 @@ public function build_postform(array $pageparams): mod_moodleoverflow_post_form
680680 public function display_original_post (): string {
681681 global $ PAGE , $ DB ;
682682 if ($ this ->interaction == 'reply ' ) {
683+ $ PAGE ->requires ->js_call_amd ('mod_moodleoverflow/show_post ' , 'init ' );
683684 $ post = post::from_record ($ DB ->get_record ('moodleoverflow_posts ' , ['id ' => $ this ->info ->relatedpost ->get_id ()]));
684685 $ data = (object ) [
685686 'postid ' => $ post ->get_id (),
Original file line number Diff line number Diff line change 167167$ PAGE ->add_body_class ('limitedwidth ' );
168168
169169// Display all.
170- $ PAGE ->requires ->js_call_amd ('mod_moodleoverflow/show_post ' , 'init ' );
171170echo $ OUTPUT ->header ();
172171echo $ postcontrol ->display_original_post ();
173172$ mformpost ->display ();
You can’t perform that action at this time.
0 commit comments