HTMLForm: Separate VForm code to a subclass
[lhc/web/wiklou.git] / includes / specials / SpecialBooksources.php
index f6b9d33..91a148d 100644 (file)
@@ -138,16 +138,10 @@ class SpecialBookSources extends SpecialPage {
                        array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' )
                );
 
-               if ( $this->getConfig()->get( 'UseMediaWikiUIEverywhere' ) ) {
-                       $form .= ' ' . Xml::submitButton(
-                               $this->msg( 'booksources-search' )->text(),
-                               array( 'class' => 'mw-ui-button mw-ui-progressive' )
-                       ) . "</p>\n";
-               } else {
-                       $form .= '&#160;' . Xml::submitButton(
-                               $this->msg( 'booksources-search' )->text()
-                       ) . "</p>\n";
-               }
+               $form .= '&#160;' . Html::submitButton(
+                       $this->msg( 'booksources-search' )->text(),
+                       array(), array( 'mw-ui-progressive' )
+               ) . "</p>\n";
 
                $form .= Html::closeElement( 'form' ) . "\n";
                $form .= Html::closeElement( 'fieldset' ) . "\n";
@@ -167,7 +161,7 @@ class SpecialBookSources extends SpecialPage {
 
                # Hook to allow extensions to insert additional HTML,
                # e.g. for API-interacting plugins and so on
-               wfRunHooks( 'BookInformation', array( $this->isbn, $this->getOutput() ) );
+               Hooks::run( 'BookInformation', array( $this->isbn, $this->getOutput() ) );
 
                # Check for a local page such as Project:Book_sources and use that if available
                $page = $this->msg( 'booksources' )->inContentLanguage()->text();