Skip to content

Commit c9b2875

Browse files
committed
Drop post_header_text support (pg content added by POST_HEADER_TEXT).
This is not needed anymore. See the corresponding pg pull request.
1 parent dbab4bb commit c9b2875

6 files changed

Lines changed: 8 additions & 19 deletions

File tree

lib/WeBWorK/ContentGenerator/Problem.pm

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -617,12 +617,6 @@ sub head ($c) {
617617
return '';
618618
}
619619

620-
sub post_header_text ($c) {
621-
return '' if ($c->{invalidSet});
622-
return $c->{pg}->{post_header_text} if $c->{pg}->{post_header_text};
623-
return '';
624-
}
625-
626620
sub siblings ($c) {
627621
my $db = $c->db;
628622
my $ce = $c->ce;

lib/WeBWorK/ContentGenerator/RenderViaRPC.pm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,6 @@ async sub renderProblem ($c) {
337337
return {
338338
text => $pg->{body_text},
339339
header_text => $pg->{head_text},
340-
post_header_text => $pg->{post_header_text},
341340
answers => $pg->{answers},
342341
errors => $pg->{errors},
343342
pg_warnings => $pg->{warnings},

lib/WeBWorK/Utils/Rendering.pm

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,14 @@ sub renderPG ($c, $effectiveUser, $set, $problem, $psvn, $formFields, $translati
239239
$c->ce, $effectiveUser, $set, $problem, $psvn, $formFields, $translationOptions));
240240

241241
my $ret = {
242-
body_text => $pg->{body_text},
243-
head_text => $pg->{head_text},
244-
post_header_text => $pg->{post_header_text},
245-
answers => unbless($pg->{answers}),
246-
errors => $pg->{errors},
247-
warnings => $pg->{warnings},
248-
result => $pg->{result},
249-
state => $pg->{state},
250-
flags => $pg->{flags},
242+
body_text => $pg->{body_text},
243+
head_text => $pg->{head_text},
244+
answers => unbless($pg->{answers}),
245+
errors => $pg->{errors},
246+
warnings => $pg->{warnings},
247+
result => $pg->{result},
248+
state => $pg->{state},
249+
flags => $pg->{flags},
251250
};
252251

253252
if (ref($pg->{pgcore}) eq 'PGcore') {

templates/ContentGenerator/Problem.html.ep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
%
6767
% stash->{footerWidthClass} = 'col-lg-10';
6868
%
69-
<%== $c->post_header_text =%>
7069
% if ($c->{pg}{warnings} || @{ $c->{pg}{warning_messages} // [] }) {
7170
<div class="row g-0 mb-2">
7271
<div class="col-12 alert alert-danger m-0">

templates/RPCRenderFormats/default.html.ep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
%= javascript $_->{file}, %{ $_->{attributes} }
4242
% }
4343
%== $rh_result->{header_text} // ''
44-
%== $rh_result->{post_header_text} // ''
4544
%== $extra_header_text
4645
</head>
4746
<body>

templates/RPCRenderFormats/default.json.ep

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
% (map { javascript($_->[0], %{ $_->[1] // {} }) } @$third_party_js),
1212
% (map { javascript($_->{file}, %{ $_->{attributes} }) } @$extra_js_files),
1313
% $rh_result->{header_text} // '',
14-
% $rh_result->{post_header_text} // '',
1514
% $extra_header_text
1615
% ),
1716
% head_part400 => '<title>WeBWorK problem</title>',

0 commit comments

Comments
 (0)