Fixed HTML validation

This commit is contained in:
Marcin Kurczewski 2014-02-22 19:47:33 +01:00
parent 6af3a0e42b
commit 395ac3033f

View file

@ -44,15 +44,13 @@ LayoutHelper::addScript('core.js');
<?php endif ?> <?php endif ?>
<hr> <hr>
<?php if ($this->config->misc->debugQueries): ?> <?php if ($this->config->misc->debugQueries): ?>
<pre class="debug">
<?php foreach (Database::getLogs() as $query) <?php foreach (Database::getLogs() as $query)
{ {
$bindings = []; $bindings = [];
foreach ($query->getBindings() as $k => $v) foreach ($query->getBindings() as $k => $v)
$bindings []= $k . '=' . $v; $bindings []= $k . '=' . $v;
printf('<p>%s [%s]</p>', htmlspecialchars($query->getAsString()), join(', ', $bindings)); printf('<pre class="debug">%s [%s]</pre>', htmlspecialchars($query->getAsString()), join(', ', $bindings));
} ?> } ?>
</pre>
<?php endif ?> <?php endif ?>
</div> </div>
</footer> </footer>