Fix name case mismatches

Change-Id: I0b0fcbfe3a00d4d4409b21c72f15dddb1ef5f985
This commit is contained in:
Siebrand Mazeland 2016-03-07 15:35:32 +01:00
parent 78dc23cc6f
commit 1ca07ef130
2 changed files with 3 additions and 3 deletions

View file

@ -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__ );

View file

@ -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;
}