(bug 32075) Always add lowercase interwikis. Patch by Vitaliy Filippov.

This commit is contained in:
Robin Pepermans 2011-12-01 20:23:04 +00:00
parent 391ad98c20
commit b81a0b4240
Notes: Robin Pepermans 2011-12-01 20:23:04 +00:00

View file

@ -167,6 +167,8 @@ class SpecialInterwiki extends SpecialPage {
}
function doSubmit() {
global $wgContLang;
$request = $this->getRequest();
$prefix = $request->getVal( 'wpInterwikiPrefix' );
$do = $request->getVal( 'wpInterwikiAction' );
@ -192,8 +194,9 @@ class SpecialInterwiki extends SpecialPage {
$log->addEntry( 'iw_delete', $selfTitle, $reason, array( $prefix ) );
}
break;
case 'edit':
case 'add':
$prefix = $wgContLang->lc( $prefix );
case 'edit':
$theurl = $request->getVal( 'wpInterwikiURL' );
$local = $request->getCheck( 'wpInterwikiLocal' ) ? 1 : 0;
$trans = $request->getCheck( 'wpInterwikiTrans' ) ? 1 : 0;