mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-14 18:15:44 +00:00
(bug 32075) Always add lowercase interwikis. Patch by Vitaliy Filippov.
This commit is contained in:
parent
391ad98c20
commit
b81a0b4240
Notes:
Robin Pepermans
2011-12-01 20:23:04 +00:00
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue