dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dad021
)
SpecialPrefixindex: Try not to generate unclickable links
author
MatmaRex
<matma.rex@gmail.com>
Fri, 30 Aug 2013 19:39:57 +0000
(21:39 +0200)
committer
MatmaRex
<matma.rex@gmail.com>
Fri, 30 Aug 2013 19:39:57 +0000
(21:39 +0200)
Bug: 52543
Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
includes/specials/SpecialPrefixindex.php
patch
|
blob
|
history
diff --git
a/includes/specials/SpecialPrefixindex.php
b/includes/specials/SpecialPrefixindex.php
index
c4c5c99
..
28d07ff
100644
(file)
--- 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 ? '<div class="allpagesredirect">' : '' ) .