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

Diagnostics panel: replace using deprecated method #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Kdyby/Github/Diagnostics/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,15 @@ public function getTab()
{
$img = Html::el('img', array('height' => '16px'))
->src('data:image/png;base64,' . base64_encode(file_get_contents(__DIR__ . '/GitHub-Mark-32px.png')));
$tab = Html::el('span')->title('Github')->add($img);
$tab = Html::el('span')->title('Github')->addHtml($img);
$title = Html::el()->setText('Github');
if ($this->calls) {
$title->setText(
count($this->calls) . ' call' . (count($this->calls) > 1 ? 's' : '') .
' / ' . sprintf('%0.2f', $this->totalTime) . ' s'
);
}
return (string)$tab->add($title);
return (string)$tab->addHtml($title);
}


Expand Down