aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2022-11-09 19:13:40 -0500
committerBrian Evans <grknight@gentoo.org>2022-11-09 19:13:40 -0500
commit48dc2368909936261965b6e4174e372bced86d83 (patch)
tree4c641ad0bd727c5a1104afe5a4590aa6fb2abc21
parentBump minimum required wiki version (diff)
downloadskin-tyrian-48dc2368909936261965b6e4174e372bced86d83.tar.gz
skin-tyrian-48dc2368909936261965b6e4174e372bced86d83.tar.bz2
skin-tyrian-48dc2368909936261965b6e4174e372bced86d83.zip
Fix search box errors
Signed-off-by: Brian Evans <grknight@gentoo.org>
-rw-r--r--TyrianTemplate.php3
1 files changed, 1 insertions, 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(