From f55a0e7978c92e76c18cd613ece11489052b5b33 Mon Sep 17 00:00:00 2001 From: Jaap Jansma Date: Thu, 15 Dec 2022 18:08:22 +0100 Subject: [PATCH] Fix for CiviX issue 257 --- mixin/polyfill.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mixin/polyfill.php b/mixin/polyfill.php index f57c5ebbf8..17ba1df3be 100644 --- a/mixin/polyfill.php +++ b/mixin/polyfill.php @@ -92,8 +92,8 @@ return function ($longName, $shortName, $basePath) { } foreach ($mixins as $mixin) { // If there's trickery about installs/uninstalls/resets, then we may need to register a second time. - if (!isset(\Civi::$statics[__FUNCTION__][$mixin])) { - \Civi::$statics[__FUNCTION__][$mixin] = 1; + if (!isset(\Civi::$statics[$longName][$mixin])) { + \Civi::$statics[$longName][$mixin] = 1; $func = $_CIVIX_MIXIN_POLYFILL[$mixin]; $func($mixInfo, $bootCache); } -- 2.25.1