Skip to content

Commit

Permalink
Load PGbasicmacros.pl with PGML.pl.
Browse files Browse the repository at this point in the history
PGML.pl depends on PGbasicmacros.pl, so load that macro in case
it hasn't already been loaded.

This fixes openwebwork/webwork2#2564.
  • Loading branch information
somiaj committed Sep 15, 2024
1 parent ab2499e commit 502046f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions macros/core/PGML.pl
Original file line number Diff line number Diff line change
Expand Up @@ -2030,9 +2030,9 @@ package main;

sub _PGML_init {
PG_restricted_eval('sub PGML {PGML::Format2(@_)}');
loadMacros("MathObjects.pl", "niceTables.pl");
loadMacros('PGbasicmacros.pl', 'MathObjects.pl', 'niceTables.pl');
my $context = Context(); # prevent Typeset context from becoming active
loadMacros("contextTypeset.pl");
loadMacros('contextTypeset.pl');
Context($context);
}

Expand Down

0 comments on commit 502046f

Please sign in to comment.