Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -775,13 +775,13 @@ |
776 | 776 | $out = ""; |
777 | 777 | // display project name |
778 | 778 | if(is_null($lastInterwiki) || $lastInterwiki != $t->getInterwiki()) { |
779 | | - if( key_exists($t->getInterwiki(),$customCaptions) ) { |
| 779 | + if( array_key_exists($t->getInterwiki(),$customCaptions) ) { |
780 | 780 | // captions from 'search-interwiki-custom' |
781 | 781 | $caption = $customCaptions[$t->getInterwiki()]; |
782 | 782 | } else { |
783 | 783 | // default is to show the hostname of the other wiki which might suck |
784 | 784 | // if there are many wikis on one hostname |
785 | | - $parsed = parse_url($t->getFullURL()); |
| 785 | + $parsed = wfParseUrl( $t->getFullURL() ); |
786 | 786 | $caption = wfMsg('search-interwiki-default', $parsed['host']); |
787 | 787 | } |
788 | 788 | // "more results" link (special page stuff could be localized, but we might not know target lang) |