mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-28 00:01:01 +00:00
Fix name case mismatches
Change-Id: I0b0fcbfe3a00d4d4409b21c72f15dddb1ef5f985
This commit is contained in:
parent
78dc23cc6f
commit
1ca07ef130
|
@ -195,7 +195,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
array(
|
||||
'id' => "mw-interwiki-{$action}form",
|
||||
'method' => 'post',
|
||||
'action' => $this->getPageTitle()->getLocalUrl( array(
|
||||
'action' => $this->getPageTitle()->getLocalURL( array(
|
||||
'action' => 'submit',
|
||||
'prefix' => $prefix
|
||||
) )
|
||||
|
@ -314,7 +314,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
}
|
||||
$iwPrefixes = Interwiki::getAllPrefixes( null );
|
||||
$iwGlobalPrefixes = array();
|
||||
if ( $wgInterwikiCentralDB !== null && $wgInterwikiCentralDB !== wfWikiId() ) {
|
||||
if ( $wgInterwikiCentralDB !== null && $wgInterwikiCentralDB !== wfWikiID() ) {
|
||||
// Fetch list from global table
|
||||
$dbrCentralDB = wfGetDB( DB_SLAVE, array(), $wgInterwikiCentralDB );
|
||||
$res = $dbrCentralDB->select( 'interwiki', '*', false, __METHOD__ );
|
||||
|
|
|
@ -22,7 +22,7 @@ class InterwikiHooks {
|
|||
public static function onInterwikiLoadPrefix( $prefix, &$iwData ) {
|
||||
global $wgInterwikiCentralDB;
|
||||
// docs/hooks.txt says: Return true without providing an interwiki to continue interwiki search.
|
||||
if ( $wgInterwikiCentralDB === null || $wgInterwikiCentralDB === wfWikiId() ) {
|
||||
if ( $wgInterwikiCentralDB === null || $wgInterwikiCentralDB === wfWikiID() ) {
|
||||
// No global set or this is global, nothing to add
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue