X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialBooksources.php;h=53798c0b7fd6dc07f301db2e738f11333c8ee042;hb=f44bebc9cee03a4cd9997278418a74dd750b5906;hp=d8eec7d9d8b86d840a461e9e0d267e255b9fe333;hpb=a56c35a226fea3a3548a0313ce8fb748cfeb3d5a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialBooksources.php b/includes/specials/SpecialBooksources.php index d8eec7d9d8..53798c0b7f 100644 --- a/includes/specials/SpecialBooksources.php +++ b/includes/specials/SpecialBooksources.php @@ -135,7 +135,7 @@ class SpecialBookSources extends SpecialPage { 'isbn', 20, $this->isbn, - array( 'autofocus' => true, 'class' => 'mw-ui-input-inline' ) + array( 'autofocus' => '', 'class' => 'mw-ui-input-inline' ) ); $form .= ' ' . Html::submitButton( @@ -161,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(); @@ -171,7 +171,7 @@ class SpecialBookSources extends SpecialPage { $content = $rev->getContent(); if ( $content instanceof TextContent ) { - //XXX: in the future, this could be stored as structured data, defining a list of book sources + // XXX: in the future, this could be stored as structured data, defining a list of book sources $text = $content->getNativeData(); $this->getOutput()->addWikiText( str_replace( 'MAGICNUMBER', $this->isbn, $text ) );