Browse Source

Update scholartokens.module

main
Alan Stanley 2 years ago committed by GitHub
parent
commit
e691bc98b9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      scholartokens.module

2
scholartokens.module

@ -129,10 +129,10 @@ function scholartokens_page_range($node, $function) {
$splitters = [',', '_', '-'];
$field = $config->get('range_field');
$original = $node->get($field)->value;
$original = str_replace($splitters, '|', $original);
if (!$original) {
return '';
}
$original = str_replace($splitters, '|', $original);
$range_parts = explode('|', $original);
return $function($range_parts);
}

Loading…
Cancel
Save