Use Config instead of globals

Change-Id: I115f9c81297c507b9ebb483e62fb216de8174878
This commit is contained in:
Kunal Mehta 2014-08-09 22:16:22 +01:00 committed by Legoktm
parent c089fa24b4
commit 740cbbafaf

View file

@ -220,7 +220,6 @@ class MonoBookTemplate extends BaseTemplate {
}
function searchBox() {
global $wgUseTwoButtonsSearchForm;
?>
<div id="p-search" class="portlet" role="search">
<h3><label for="searchInput"><?php $this->msg( 'search' ) ?></label></h3>
@ -236,7 +235,7 @@ class MonoBookTemplate extends BaseTemplate {
array( "id" => "searchGoButton", "class" => "searchButton" )
);
if ( $wgUseTwoButtonsSearchForm ) {
if ( $this->config->get( 'UseTwoButtonsSearchForm' ) ) {
?>&#160;
<?php echo $this->makeSearchButton(
"fulltext",