Skip to content

Commit

Permalink
Merge pull request Kdyby#16 from RiKap/pull-1
Browse files Browse the repository at this point in the history
Html::add() replaced with addHtml() or addText()
  • Loading branch information
fprochazka authored Aug 3, 2016
2 parents b60b809 + 20d86fa commit 3335b2a
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 3335b2a

Please sign in to comment.