From 834f3507d51630173a684c88b9bb3a8d3a98f452 Mon Sep 17 00:00:00 2001 From: Ryan Cramer Date: Fri, 6 Jan 2023 07:56:27 -0500 Subject: [PATCH] Fix issue processwire/processwire-issues#1662 --- wire/templates-admin/debug.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wire/templates-admin/debug.inc b/wire/templates-admin/debug.inc index 2f18b0ec..3e0d998d 100644 --- a/wire/templates-admin/debug.inc +++ b/wire/templates-admin/debug.inc @@ -200,7 +200,7 @@ echo $oc++; } ksort($hooksSorted); - foreach($hooksSorted as $key => $hook) { + foreach($hooksSorted as $hook) { $suffix = $hook['options']['type'] == 'method' ? '()' : ''; $toObject = !empty($hook['toObject']) ? $hook['toObject'] : ''; $toMethod = $hook['toMethod']; @@ -209,7 +209,7 @@ echo "" . "" . ($hook['options']['before'] ? 'before ' : '') . ($hook['options']['after'] ? 'after' : '') . "" . "" . ($hook['options']['fromClass'] ? $hook['options']['fromClass'] . '::' : '') . "$hook[method]$suffix" . - "" . ($toObject ? "$toObject::$toMethod" : $toMethod) . "()" . + "" . ($toObject ? wireClassName($toObject) . "::$toMethod" : $toMethod) . "()" . "" . ($hook['options']['allInstances'] || $hook['options']['fromClass'] ? "class " : "instance ") . $hook['options']['type'] . "" . "" . $hook['options']['priority'] . "" . ""; @@ -237,7 +237,7 @@ echo - + isInstantiated()): ?> queryLog(); $oc = count($queries); ?>