[MediaWiki-commits] [Gerrit] SpecialPrefixindex: Try not to generate unclickable links - change (mediawiki/core)

2013-09-12 Thread jenkins-bot (Code Review)
jenkins-bot has submitted this change and it was merged.

Change subject: SpecialPrefixindex: Try not to generate unclickable links
..


SpecialPrefixindex: Try not to generate unclickable links

Bug: 52543
Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
---
M includes/specials/SpecialPrefixindex.php
1 file changed, 2 insertions(+), 1 deletion(-)

Approvals:
  Catrope: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/specials/SpecialPrefixindex.php 
b/includes/specials/SpecialPrefixindex.php
index c4c5c99..28d07ff 100644
--- a/includes/specials/SpecialPrefixindex.php
+++ b/includes/specials/SpecialPrefixindex.php
@@ -210,7 +210,8 @@
$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' : '' ) .

-- 
To view, visit https://gerrit.wikimedia.org/r/82029
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bartosz DziewoƄski matma@gmail.com
Gerrit-Reviewer: Catrope roan.katt...@gmail.com
Gerrit-Reviewer: jenkins-bot

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] SpecialPrefixindex: Try not to generate unclickable links - change (mediawiki/core)

2013-08-30 Thread Matmarex (Code Review)
Matmarex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/82029


Change subject: SpecialPrefixindex: Try not to generate unclickable links
..

SpecialPrefixindex: Try not to generate unclickable links

Bug: 52543
Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
---
M includes/specials/SpecialPrefixindex.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/29/82029/1

diff --git a/includes/specials/SpecialPrefixindex.php 
b/includes/specials/SpecialPrefixindex.php
index c4c5c99..28d07ff 100644
--- a/includes/specials/SpecialPrefixindex.php
+++ b/includes/specials/SpecialPrefixindex.php
@@ -210,7 +210,8 @@
$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' : '' ) .

-- 
To view, visit https://gerrit.wikimedia.org/r/82029
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matmarex matma@gmail.com

___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits