Skip to content

Commit

Permalink
BlueScreen: removed source from footer
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Apr 8, 2019
1 parent b28d54b commit f6d5ab0
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/Tracy/BlueScreen/BlueScreen.php
Expand Up @@ -116,7 +116,6 @@ private function renderTemplate(\Throwable $exception, string $template, $toScre
);
$info = array_filter($this->info);
$source = Helpers::getSource();
$sourceIsUrl = preg_match('#^https?://#', $source);
$title = $exception instanceof \ErrorException
? Helpers::errorTypeToString($exception->getSeverity())
: Helpers::getClass($exception);
Expand Down
2 changes: 0 additions & 2 deletions src/Tracy/BlueScreen/assets/content.phtml
Expand Up @@ -12,7 +12,6 @@
* @param array $info
* @param string $title
* @param string $source
* @param bool $sourceIsUrl
* @param array $lastError
* @param array $httpHeaders
* @param callable $dump
Expand Down Expand Up @@ -361,7 +360,6 @@ $code = $exception->getCode() ? ' #' . $exception->getCode() : '';
<ul>
<li><b><a href="https://nette.org/make-donation?to=tracy" target="_blank" rel="noreferrer noopener">Please support Tracy via a donation 💙️</a></b></li>
<li>Report generated at <?= @date('Y/m/d H:i:s') // @ timezone may not be set ?></li>
<li><?php if ($sourceIsUrl): ?><a href="<?= Helpers::escapeHtml($source) ?>"><?php endif ?><?= Helpers::escapeHtml($source) ?><?php if ($sourceIsUrl): ?></a><?php endif ?></li>
<?php foreach ($info as $item): ?><li><?= Helpers::escapeHtml($item) ?></li><?php endforeach ?>
</ul>
<div class="footer-logo"><a href="https://tracy.nette.org" rel="noreferrer"></a></div>
Expand Down
1 change: 0 additions & 1 deletion tests/Tracy/expected/Debugger.E_ERROR.html.expect
Expand Up @@ -215,7 +215,6 @@
<ul>
<li><b><a href="https://nette.org/make-donation?to=tracy" target="_blank" rel="noreferrer noopener">%a%️</a></b></li>
<li>Report generated at %a%</li>
<li>CLI%a?%</li>
<li>PHP %a%</li> </ul>
<div class="footer-logo"><a href="https://tracy.nette.org" rel="noreferrer"></a></div>
</footer>
Expand Down
1 change: 0 additions & 1 deletion tests/Tracy/expected/Debugger.error-in-eval.expect
Expand Up @@ -186,7 +186,6 @@
<ul>
<li><b><a href="https://nette.org/make-donation?to=tracy" target="_blank" rel="noreferrer noopener">%a%️</a></b></li>
<li>Report generated at %a%</li>
<li>CLI%a?%</li>
<li>PHP %a%</li> </ul>
<div class="footer-logo"><a href="https://tracy.nette.org" rel="noreferrer"></a></div>
</footer>
Expand Down
1 change: 0 additions & 1 deletion tests/Tracy/expected/Debugger.exception.html.expect
Expand Up @@ -182,7 +182,6 @@
<ul>
<li><b><a href="https://nette.org/make-donation?to=tracy" target="_blank" rel="noreferrer noopener">%a%️</a></b></li>
<li>Report generated at %a%</li>
<li>CLI%a?%</li>
<li>PHP %a%</li> </ul>
<div class="footer-logo"><a href="https://tracy.nette.org" rel="noreferrer"></a></div>
</footer>
Expand Down
1 change: 0 additions & 1 deletion tests/Tracy/expected/Debugger.strict.html.expect
Expand Up @@ -189,7 +189,6 @@
<ul>
<li><b><a href="https://nette.org/make-donation?to=tracy" target="_blank" rel="noreferrer noopener">%a%️</a></b></li>
<li>Report generated at %a%</li>
<li>CLI%a?%</li>
<li>PHP %a%</li> </ul>
<div class="footer-logo"><a href="https://tracy.nette.org" rel="noreferrer"></a></div>
</footer>
Expand Down

0 comments on commit f6d5ab0

Please sign in to comment.