From 2beed87111899f5a50e5764b62592bfc59d80985 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Sun, 21 Apr 2013 19:27:46 +0200 Subject: [PATCH] CologneBlue: Use search input and button generators from SkinTemplate This also makes sure that the search inputs receive their placeholder, which fixes bug 47475. Bug: 47475 Change-Id: Ie1215078edb38f98ec57d2a3ec46b1d0ace0bc30 --- skins/CologneBlue.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/skins/CologneBlue.php b/skins/CologneBlue.php index d766b64de5..5ae8843413 100644 --- a/skins/CologneBlue.php +++ b/skins/CologneBlue.php @@ -541,13 +541,12 @@ class CologneBlueTemplate extends BaseTemplate { $s .= wfMessage( 'qbfind' )->text() . ": "; } - $s .= "" - . ( $which == 'footer' ? " " : "
" ) - . "escaped() . "\" />"; + $s .= $this->makeSearchInput( array( 'class' => 'mw-searchInput', 'type' => 'text', 'size' => '14' ) ); + $s .= ( $which == 'footer' ? " " : "
" ); + $s .= $this->makeSearchButton( 'go', array( 'class' => 'searchButton' ) ); if ( $wgUseTwoButtonsSearchForm ) { - $s .= " escaped() . "\" />\n"; + $s .= $this->makeSearchButton( 'fulltext', array( 'class' => 'searchButton' ) ); } else { $s .= '
\n"; } -- 2.20.1