Legoktm has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/339678 )

Change subject: Fix Special:MultiLock link for non-English wikis
......................................................................

Fix Special:MultiLock link for non-English wikis

In addition to the special page name, we need to make sure the canonical
name is used for the "Special" namespace, so explicitly specify that
instead of using Title at all.

Bug: T158147
Change-Id: If794a76210f96c4628dfbe82f1dab37bc4915714
---
M specials/SpecialCheckUser.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CheckUser 
refs/changes/78/339678/1

diff --git a/specials/SpecialCheckUser.php b/specials/SpecialCheckUser.php
index a1d5c0a..268c161 100644
--- a/specials/SpecialCheckUser.php
+++ b/specials/SpecialCheckUser.php
@@ -1160,7 +1160,7 @@
                                        $wgCheckUserCAMultiLock['centralDB'],
                                        // Use canonical name instead of local 
name so that it works
                                        // even if the local language is 
different from central wiki
-                                       Title::makeTitle( NS_SPECIAL, 
'MultiLock' )->getPrefixedText()
+                                       'Special:MultiLock'
                                );
                                if ( $centralMLUrl === false ) {
                                        throw new Exception( "Could not 
retrieve URL for {$wgCheckUserCAMultiLock['centralDB']}" );

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If794a76210f96c4628dfbe82f1dab37bc4915714
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CheckUser
Gerrit-Branch: master
Gerrit-Owner: Legoktm <lego...@member.fsf.org>

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

Reply via email to