From 48dc2368909936261965b6e4174e372bced86d83 Mon Sep 17 00:00:00 2001 From: Brian Evans Date: Wed, 9 Nov 2022 19:13:40 -0500 Subject: Fix search box errors Signed-off-by: Brian Evans --- TyrianTemplate.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/TyrianTemplate.php b/TyrianTemplate.php index 305c606..a6bfb02 100644 --- a/TyrianTemplate.php +++ b/TyrianTemplate.php @@ -232,8 +232,7 @@ class TyrianTemplate extends BaseTemplate { [ "id" => "mw-searchButton", "class" => "searchButton btn btn-default" ] ); } else { - $searchBox = $skinObject->getComponent( 'search-box' ); - $data = $searchBox->getTemplateData(); + $data = $skinObject->getTemplateData()['data-search-box']; $searchInput = Html::element( 'input', array_merge( $data[ 'array-input-attributes' ], [ "id" => "searchInput", "class" => "form-control", "placeholder" => $this->getMsg( 'search' )->escaped() ])); $searchGoButton = Html::element( -- cgit v1.2.3-65-gdbad