Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The recent update to add Token support has a typo in the committed code.
The array is $vars but is called as $var (missing an s) in the current branches (release and dev).
This exists in two places. Lines 698 & 735
Current Code (broken):
if (module_exists('token') && isset($var[$object])) {
Fixed Code:
if (module_exists('token') && isset($vars[$object])) {
Reference these tickets:
https://www.drupal.org/node/2376377
https://www.drupal.org/node/2476357
D8: https://www.drupal.org/node/2288345
Comment | File | Size | Author |
---|---|---|---|
#2 | token-support-typo-2493145-2.patch | 1.08 KB | artis |
Comments
Comment #1
artis CreditAttribution: artis at Texas Creative commentedComment #2
artis CreditAttribution: artis at Texas Creative commentedPatch is attached.
Comment #3
aspilicious CreditAttribution: aspilicious commented:s Thnx!