Browse Source

Properly check for collapsed notes option.

8.x-1.x 8.x-1.0-beta4
Alexander O'Neill 3 years ago
parent
commit
551c3ccd2f
  1. 2
      src/Plugin/Filter/ReferenceFootnotesFilter.php

2
src/Plugin/Filter/ReferenceFootnotesFilter.php

@ -129,7 +129,7 @@ class ReferenceFootnotesFilter extends FilterBase {
if ($op == 'prepare') {
// In the 'prepare' case, the first argument contains the options to use.
// The name 'matches' is incorrect, we just use the variable anyway.
$opt_collapse = $matches;
$opt_collapse = isset($matches['footnotes_collapse']) && $matches['footnotes_collapse'];
return 0;
}

Loading…
Cancel
Save