X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FPrefixSearch.php;h=5127158e697840643471d50a7a444264b85afda0;hb=23b7f3bbd553183a21d785bae175249efad5ee5d;hp=48b1d72e1b8fe032b15a4cfa5f099a11d4f8dcde;hpb=f9e21f91e459c40fed6d8f2e76cccbce07e2ba1b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/PrefixSearch.php b/includes/PrefixSearch.php index 48b1d72e1b..5127158e69 100644 --- a/includes/PrefixSearch.php +++ b/includes/PrefixSearch.php @@ -211,7 +211,7 @@ abstract class PrefixSearch { $searchParts = explode( '/', $search, 2 ); $searchKey = $searchParts[0]; - $subpageSearch = isset( $searchParts[1] ) ? $searchParts[1] : null; + $subpageSearch = $searchParts[1] ?? null; // Handle subpage search separately. if ( $subpageSearch !== null ) { @@ -231,7 +231,7 @@ abstract class PrefixSearch { } } - # normalize searchKey, so aliases with spaces can be found - bug 25675 + # normalize searchKey, so aliases with spaces can be found - T27675 $searchKey = str_replace( ' ', '_', $searchKey ); $searchKey = $wgContLang->caseFold( $searchKey ); @@ -243,7 +243,7 @@ abstract class PrefixSearch { } foreach ( $wgContLang->getSpecialPageAliases() as $page => $aliases ) { - if ( !in_array( $page, SpecialPageFactory::getNames() ) ) {# bug 20885 + if ( !in_array( $page, SpecialPageFactory::getNames() ) ) {# T22885 continue; } @@ -256,7 +256,7 @@ abstract class PrefixSearch { $matches = []; foreach ( $keys as $pageKey => $page ) { if ( $searchKey === '' || strpos( $pageKey, $searchKey ) === 0 ) { - // bug 27671: Don't use SpecialPage::getTitleFor() here because it + // T29671: Don't use SpecialPage::getTitleFor() here because it // localizes its input leading to searches for e.g. Special:All // returning Spezial:MediaWiki-Systemnachrichten and returning // Spezial:Alle_Seiten twice when $wgLanguageCode == 'de'