mirror of
https://github.com/processwire/processwire.git
synced 2025-08-11 09:14:58 +02:00
Fix issue processwire/processwire-issues#1662
This commit is contained in:
@@ -200,7 +200,7 @@ echo
|
|||||||
$oc++;
|
$oc++;
|
||||||
}
|
}
|
||||||
ksort($hooksSorted);
|
ksort($hooksSorted);
|
||||||
foreach($hooksSorted as $key => $hook) {
|
foreach($hooksSorted as $hook) {
|
||||||
$suffix = $hook['options']['type'] == 'method' ? '()' : '';
|
$suffix = $hook['options']['type'] == 'method' ? '()' : '';
|
||||||
$toObject = !empty($hook['toObject']) ? $hook['toObject'] : '';
|
$toObject = !empty($hook['toObject']) ? $hook['toObject'] : '';
|
||||||
$toMethod = $hook['toMethod'];
|
$toMethod = $hook['toMethod'];
|
||||||
@@ -209,7 +209,7 @@ echo
|
|||||||
"<tr>" .
|
"<tr>" .
|
||||||
"<td>" . ($hook['options']['before'] ? 'before ' : '') . ($hook['options']['after'] ? 'after' : '') . "</td>" .
|
"<td>" . ($hook['options']['before'] ? 'before ' : '') . ($hook['options']['after'] ? 'after' : '') . "</td>" .
|
||||||
"<td>" . ($hook['options']['fromClass'] ? $hook['options']['fromClass'] . '::' : '') . "$hook[method]$suffix</td>" .
|
"<td>" . ($hook['options']['fromClass'] ? $hook['options']['fromClass'] . '::' : '') . "$hook[method]$suffix</td>" .
|
||||||
"<td>" . ($toObject ? "$toObject::$toMethod" : $toMethod) . "()</td>" .
|
"<td>" . ($toObject ? wireClassName($toObject) . "::$toMethod" : $toMethod) . "()</td>" .
|
||||||
"<td>" . ($hook['options']['allInstances'] || $hook['options']['fromClass'] ? "class " : "instance ") . $hook['options']['type'] . "</td>" .
|
"<td>" . ($hook['options']['allInstances'] || $hook['options']['fromClass'] ? "class " : "instance ") . $hook['options']['type'] . "</td>" .
|
||||||
"<td>" . $hook['options']['priority'] . "</td>" .
|
"<td>" . $hook['options']['priority'] . "</td>" .
|
||||||
"</tr>";
|
"</tr>";
|
||||||
@@ -237,7 +237,7 @@ echo
|
|||||||
</div>
|
</div>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
<?php if($tool == 'database'): ?>
|
<?php if($tool == 'database' && $database): ?>
|
||||||
<?php
|
<?php
|
||||||
$o = '';
|
$o = '';
|
||||||
$oc = 0;
|
$oc = 0;
|
||||||
@@ -288,7 +288,7 @@ Debug::saveTimer('timer-name', 'optional notes'); // stop and save timer
|
|||||||
|
|
||||||
<?php if($tool == 'db' && $db->isInstantiated()): ?>
|
<?php if($tool == 'db' && $db->isInstantiated()): ?>
|
||||||
<?php
|
<?php
|
||||||
$queries = Database::getQueryLog();
|
$queries = $database->queryLog();
|
||||||
$oc = count($queries);
|
$oc = count($queries);
|
||||||
?>
|
?>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
|
Reference in New Issue
Block a user