Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Commit

Permalink
Drop usage of Nette\Templating\Helpers
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka committed Oct 12, 2015
1 parent bbf786b commit 52aebb0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Kdyby/Github/Diagnostics/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ public function getPanel()
}

ob_start();
$esc = Callback::closure('Nette\Templating\Helpers::escapeHtml');
$esc = function ($s) {
return htmlSpecialChars($s, ENT_QUOTES, 'UTF-8');
};
$click = class_exists('\Tracy\Dumper')
? function ($o, $c = FALSE) { return \Tracy\Dumper::toHtml($o, array('collapse' => $c)); }
: Callback::closure('\Tracy\Helpers::clickableDump');
Expand Down

0 comments on commit 52aebb0

Please sign in to comment.