Skip to content

Commit 9a506dc

Browse files
committed
simplify courseName retrieval
1 parent 88df6a3 commit 9a506dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/WeBWorK/ContentGenerator/Problem.pm

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2257,8 +2257,7 @@ 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");
2260+
my $courseName = $r->urlpath->arg("courseID");
22622261
my $problem = $self->{problem};
22632262
my %will = %{ $self->{will} };
22642263
my $pg = $self->{pg};

0 commit comments

Comments
 (0)