Skip to content

Commit c3ca24b

Browse files
committed
A bit of code cleanup.
1 parent 3a7b1e0 commit c3ca24b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WeBWorK/Utils/Rendering.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ sub renderPG ($c, $effectiveUser, $set, $problem, $psvn, $formFields, $translati
272272
my @deprecated_macros;
273273
for (keys %{ $pg->{pgcore}{PG_loadMacros}{macroFileList} }) {
274274
my @dirs = split('/', $_);
275-
push(@deprecated_macros, $dirs[$#dirs]) if $dirs[ $#dirs - 1 ] eq 'deprecated';
275+
push(@deprecated_macros, $dirs[-1]) if $dirs[-2] eq 'deprecated';
276276
}
277277

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

0 commit comments

Comments
 (0)