From 17b7a6dc22627e68d4caacb4217a6b9b1edfc0ec Mon Sep 17 00:00:00 2001 From: Pavel Lauko Date: Mon, 24 Jul 2017 10:25:41 +0200 Subject: [PATCH] Diagnostics panel: replace using deprecated method --- src/Kdyby/Github/Diagnostics/Panel.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Kdyby/Github/Diagnostics/Panel.php b/src/Kdyby/Github/Diagnostics/Panel.php index 7e8df5f..67e2cf3 100644 --- a/src/Kdyby/Github/Diagnostics/Panel.php +++ b/src/Kdyby/Github/Diagnostics/Panel.php @@ -51,7 +51,7 @@ 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( @@ -59,7 +59,7 @@ public function getTab() ' / ' . sprintf('%0.2f', $this->totalTime) . ' s' ); } - return (string)$tab->add($title); + return (string)$tab->addHtml($title); }