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);
?>