Commit 6e9eb545 authored by webchick's avatar webchick
Browse files

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

parent 61035e44
......@@ -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";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment