mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-14 18:15:44 +00:00
Pass default url as parameter for wgRequest->getVal( 'wpInterwikiURL' ) per ^demon on r92672. Also for wgRequest->getVal( 'prefix' ) alternative of wgRequest->getVal( 'wpInterwikiPrefix' ).
This commit is contained in:
parent
60dc33830c
commit
89e34c26cf
Notes:
Robin Pepermans
2011-07-23 23:42:14 +00:00
|
@ -116,14 +116,12 @@ class SpecialInterwiki extends SpecialPage {
|
|||
$intromessage = wfMessage( 'interwiki_editintro' )->text();
|
||||
$button = 'edit';
|
||||
} elseif( $action == 'add' ) {
|
||||
$prefix = $wgRequest->getVal( 'wpInterwikiPrefix' ) ?
|
||||
$wgRequest->getVal( 'wpInterwikiPrefix' ) : $wgRequest->getVal( 'prefix' );
|
||||
$prefix = $wgRequest->getVal( 'wpInterwikiPrefix', $wgRequest->getVal( 'prefix' ) );
|
||||
$prefix = Xml::input( 'wpInterwikiPrefix', 20, $prefix,
|
||||
array( 'tabindex' => 1, 'id' => 'mw-interwiki-prefix', 'maxlength' => 20 ) );
|
||||
$local = $wgRequest->getCheck( 'wpInterwikiLocal' );
|
||||
$trans = $wgRequest->getCheck( 'wpInterwikiTrans' );
|
||||
$defaulturl = $wgRequest->getVal( 'wpInterwikiURL' ) ?
|
||||
$wgRequest->getVal( 'wpInterwikiURL' ) : wfMessage( 'interwiki-defaulturl' )->text();
|
||||
$defaulturl = $wgRequest->getVal( 'wpInterwikiURL', wfMessage( 'interwiki-defaulturl' )->text() );
|
||||
$topmessage = wfMessage( 'interwiki_addtext' )->text();
|
||||
$intromessage = wfMessage( 'interwiki_addintro' )->text();
|
||||
$button = 'interwiki_addbutton';
|
||||
|
|
Loading…
Reference in a new issue