Skip to content
Snippets Groups Projects
Commit 6e9eb545 authored by Angie Byron's avatar Angie Byron
Browse files

#558538 by pwolanin: Fixed Non-by-reference use of drupul_static() in token.inc.

parent 61035e44
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -238,7 +238,7 @@ function token_info() {
* Load modulename.tokens.inc for all enabled modules.
*/
function _token_initialize() {
$initialized = drupal_static(__FUNCTION__);
$initialized = &drupal_static(__FUNCTION__);
if (!$initialized) {
foreach (module_list() as $module) {
$filename = DRUPAL_ROOT . '/' . drupal_get_path('module', $module) . "/$module.tokens.inc";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment