X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fwidget%2Fsearch%2FInterwikiSearchResultSetWidget.php;h=81a1a43111c6df8a06773ea2892666f9cba6d91e;hp=ef93362dd3caae6d4dfd24e62d497aa46423ca2b;hb=d19826aa35b206847a568a4b2c1c9ffaa615fca5;hpb=04d149b816c23b9a35db9e2258ee43eb04edd2d6 diff --git a/includes/widget/search/InterwikiSearchResultSetWidget.php b/includes/widget/search/InterwikiSearchResultSetWidget.php index ef93362dd3..81a1a43111 100644 --- a/includes/widget/search/InterwikiSearchResultSetWidget.php +++ b/includes/widget/search/InterwikiSearchResultSetWidget.php @@ -123,7 +123,6 @@ class InterwikiSearchResultSetWidget implements SearchResultSetWidget { * @return string HTML */ protected function footerHtml( $term, $iwPrefix ) { - $href = Title::makeTitle( NS_SPECIAL, 'Search', null, $iwPrefix )->getLocalURL( [ 'search' => $term, 'fulltext' => 1 ] ); @@ -171,14 +170,13 @@ class InterwikiSearchResultSetWidget implements SearchResultSetWidget { * @return OOUI\IconWidget **/ protected function iwIcon( $iwPrefix ) { - $interwiki = $this->iwLookup->fetch( $iwPrefix ); $parsed = wfParseUrl( wfExpandUrl( $interwiki ? $interwiki->getURL() : '/' ) ); $iwIconUrl = $parsed['scheme'] . $parsed['delimiter'] . $parsed['host'] . - ( isset ( $parsed['port'] ) ? ':' . $parsed['port'] : '' ) . + ( isset( $parsed['port'] ) ? ':' . $parsed['port'] : '' ) . '/favicon.ico'; $iwIcon = new OOUI\IconWidget( [