Skip to content

Commit

Permalink
Tracy 2.4 required and typo fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
simPod committed Jul 18, 2017
1 parent 204de1d commit ce29813
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ValidatorPanel.php
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ class ValidatorPanel extends Nette\Object implements Tracy\IBarPanel
/**
* @var array
*/
public static $severenity = array(
public static $severity = array(
LIBXML_ERR_WARNING => 'Warning',
LIBXML_ERR_ERROR => 'Error',
LIBXML_ERR_FATAL => 'Fatal error',
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"issues":"https://github.com/Kdyby/HtmlValidatorPanel/issues"
},
"require":{
"tracy/tracy":"~2.3"
"tracy/tracy":"~2.4"
},
"suggest":{
"nette/di":"The extension can be registered using nette/di into your application"
Expand Down
10 changes: 5 additions & 5 deletions panel.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@ use tracy;
box-shadow: none !important;
}

#tracy-debug .tracy-htmlValidation td span.severenity-1 {
#tracy-debug .tracy-htmlValidation td span.severity-1 {
color: #aaaa30 !important;
font-weight: bold !important;
}

#tracy-debug .tracy-htmlValidation td span.severenity-2 {
#tracy-debug .tracy-htmlValidation td span.severity-2 {
color: #aa832f !important;
font-weight: bold !important;
}

#tracy-debug .tracy-htmlValidation td span.severenity-3 {
#tracy-debug .tracy-htmlValidation td span.severity-3 {
color: #aa4c34 !important;
font-weight: bold !important;
}
Expand All @@ -49,8 +49,8 @@ use tracy;
<div class="tracy-inner tracy-htmlValidation">
<table>
<?php foreach ($errors as $error): ?>
<tr><td><span class="severenity-<?php echo (int)$error->level; ?>">
<?php echo htmlspecialchars(ValidatorPanel::$severenity[$error->level] . ' on column ' . $error->column . ': ' . $error->message); ?>
<tr><td><span class="severity-<?php echo (int)$error->level; ?>">
<?php echo htmlspecialchars(ValidatorPanel::$severity[$error->level] . ' on column ' . $error->column . ': ' . $error->message); ?>
</span></td></tr>
<tr><td>
<?php echo \Tracy\BlueScreen::highlightPhp($html, $error->line, 10); ?>
Expand Down

0 comments on commit ce29813

Please sign in to comment.