Skip to content

Commit 88df6a3

Browse files
committed
update for WordPress Q&A plugin
1 parent 8f8bff9 commit 88df6a3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/WeBWorK/ContentGenerator/Problem.pm

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,6 +2257,8 @@ sub output_past_answer_button{
22572257
sub output_email_instructor{
22582258
my $self = shift;
22592259
my $r = $self->r;
2260+
my $urlpath = $r->urlpath;
2261+
my $courseName = $urlpath->arg("courseID");
22602262
my $problem = $self->{problem};
22612263
my %will = %{ $self->{will} };
22622264
my $pg = $self->{pg};
@@ -2265,6 +2267,7 @@ sub output_email_instructor{
22652267

22662268
print $self->feedbackMacro(
22672269
module => __PACKAGE__,
2270+
courseId => $courseName,
22682271
set => $self->{set}->set_id,
22692272
problem => $problem->problem_id,
22702273
problemPath => $problem->source_file,

0 commit comments

Comments
 (0)