Skip to content

Commit 44cce4c

Browse files
committed
A bit of code cleanup.
1 parent c9ddfe6 commit 44cce4c

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
@@ -257,7 +257,7 @@ sub renderPG ($c, $effectiveUser, $set, $problem, $psvn, $formFields, $translati
257257
my @deprecated_macros;
258258
for (keys %{ $pg->{pgcore}{PG_loadMacros}{macroFileList} }) {
259259
my @dirs = split('/', $_);
260-
push(@deprecated_macros, $dirs[$#dirs]) if $dirs[ $#dirs - 1 ] eq 'deprecated';
260+
push(@deprecated_macros, $dirs[-1]) if $dirs[-2] eq 'deprecated';
261261
}
262262

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

0 commit comments

Comments
 (0)