Skip to content

Commit

Permalink
fix: use View::get() for vars
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanorosanelli committed Jul 30, 2019
1 parent ac7d368 commit 743c03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/View/Helper/HtmlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function initialize(array $config)
*/
public function title() : string
{
$titleVar = Hash::get($this->_View->viewVars, '_title');
$titleVar = $this->getView()->get('_title');
if ($titleVar !== null) {
return $titleVar;
}
Expand Down

0 comments on commit 743c03a

Please sign in to comment.