From 7677765903b0c88fd6d3840c6df64d2bd7530cc5 Mon Sep 17 00:00:00 2001 From: Prateek Saxena Date: Tue, 23 Sep 2014 17:29:33 -0700 Subject: [PATCH] Special:BookSources: Use getConfig instead of Global follow up to I00c4a00d4a2aeb7f6b39ede6fca1725991b68d7c Change-Id: Ice8ec212e5a5fbb0e34ad02f4fffdcc4ce1424fc --- includes/specials/SpecialBooksources.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/specials/SpecialBooksources.php b/includes/specials/SpecialBooksources.php index 0a92768ac7..e6750e125e 100644 --- a/includes/specials/SpecialBooksources.php +++ b/includes/specials/SpecialBooksources.php @@ -117,8 +117,6 @@ class SpecialBookSources extends SpecialPage { * @return string */ private function makeForm() { - global $wgUseMediaWikiUIEverywhere; - $form = Html::openElement( 'fieldset' ) . "\n"; $form .= Html::element( 'legend', @@ -136,7 +134,7 @@ class SpecialBookSources extends SpecialPage { array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' ) ); - if ( $wgUseMediaWikiUIEverywhere ) { + if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) { $form .= ' ' . Xml::submitButton( $this->msg( 'booksources-search' )->text(), array( 'class' => 'mw-ui-button mw-ui-progressive' ) -- 2.20.1