Skip to content

Commit

Permalink
Merge pull request #1034 from taniwallach/patch_1018_add_additional_c…
Browse files Browse the repository at this point in the history
…ss_files

Patch for PR 1018
  • Loading branch information
taniwallach authored Oct 6, 2019
2 parents b0e0c7f + d5f2eb7 commit 4924c94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/WeBWorK/ContentGenerator/Problem.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2285,7 +2285,10 @@ sub output_CSS {
# or via a setting of $ce->{pg}->{specialPGEnvironmentVars}->{extra_css_files}
# which can be set in course.conf (the value should be an anon array).
my $pg = $self->{pg};
if ( defined( $pg->{flags}{extra_css_files} ) ) {
if ( defined( $pg->{flags}{extra_css_files} ) ||
( defined( $ce->{pg}->{specialPGEnvironmentVars}->{extra_css_files} ) &&
scalar( @{$ce->{pg}->{specialPGEnvironmentVars}->{extra_css_files}} ) > 0 )
) {
my $baseDir = $ce->{webwork_htdocs_url};
my $webwork_dir = $WeBWorK::Constants::WEBWORK_DIRECTORY;
my $cssFile;
Expand Down

0 comments on commit 4924c94

Please sign in to comment.