Use Config instead of globals
Change-Id: I115f9c81297c507b9ebb483e62fb216de8174878
This commit is contained in:
parent
c089fa24b4
commit
740cbbafaf
1 changed files with 1 additions and 2 deletions
|
@ -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' ) ) {
|
||||
?> 
|
||||
<?php echo $this->makeSearchButton(
|
||||
"fulltext",
|
||||
|
|
Loading…
Reference in a new issue