Skip to content

Commit

Permalink
Html::add() replaced with addHtml() or addText()
Browse files Browse the repository at this point in the history
  • Loading branch information
RiKap committed Jul 21, 2016
1 parent b60b809 commit 20d86fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Kdyby/ElasticSearch/Diagnostics/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function getTab()
{
$img = Html::el('img', ['height' => '14', 'width' => '14'])
->src('data:image/png;base64,' . base64_encode(file_get_contents(__DIR__ . '/logo.png')));
$tab = Html::el('span')->title('ElasticSearch')->add($img);
$tab = Html::el('span')->title('ElasticSearch')->addHtml($img);
$title = Html::el()->setText('ElasticSearch');

if ($this->queriesCount) {
Expand All @@ -69,7 +69,7 @@ public function getTab()
);
}

return (string) $tab->add($title);
return (string) $tab->addText($title);
}


Expand Down

0 comments on commit 20d86fa

Please sign in to comment.