X-Git-Url: http://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fspecials%2FSpecialPrefixindex.php;h=28d07ffc51e71b5d1f9a66f151845bb5236a89cd;hb=3ca7f919e01617c4685efce285299aa351ff1dac;hp=c4c5c997e66de81b4319bed2b213b35bdefc2192;hpb=b8af5d9485c3977d4ccea6a3ff2b28f535193237;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/specials/SpecialPrefixindex.php b/includes/specials/SpecialPrefixindex.php index c4c5c997e6..28d07ffc51 100644 --- a/includes/specials/SpecialPrefixindex.php +++ b/includes/specials/SpecialPrefixindex.php @@ -210,7 +210,8 @@ class SpecialPrefixindex extends SpecialAllpages { $t = Title::makeTitle( $s->page_namespace, $s->page_title ); if ( $t ) { $displayed = $t->getText(); - if ( $this->stripPrefix ) { + // Try not to generate unclickable links + if ( $this->stripPrefix && $prefixLength !== strlen( $displayed ) ) { $displayed = substr( $displayed, $prefixLength ); } $link = ( $s->page_is_redirect ? '
' : '' ) .