Index: trunk/extensions/Interwiki/Interwiki_body.php |
— | — | @@ -116,14 +116,12 @@ |
117 | 117 | $intromessage = wfMessage( 'interwiki_editintro' )->text(); |
118 | 118 | $button = 'edit'; |
119 | 119 | } elseif( $action == 'add' ) { |
120 | | - $prefix = $wgRequest->getVal( 'wpInterwikiPrefix' ) ? |
121 | | - $wgRequest->getVal( 'wpInterwikiPrefix' ) : $wgRequest->getVal( 'prefix' ); |
| 120 | + $prefix = $wgRequest->getVal( 'wpInterwikiPrefix', $wgRequest->getVal( 'prefix' ) ); |
122 | 121 | $prefix = Xml::input( 'wpInterwikiPrefix', 20, $prefix, |
123 | 122 | array( 'tabindex' => 1, 'id' => 'mw-interwiki-prefix', 'maxlength' => 20 ) ); |
124 | 123 | $local = $wgRequest->getCheck( 'wpInterwikiLocal' ); |
125 | 124 | $trans = $wgRequest->getCheck( 'wpInterwikiTrans' ); |
126 | | - $defaulturl = $wgRequest->getVal( 'wpInterwikiURL' ) ? |
127 | | - $wgRequest->getVal( 'wpInterwikiURL' ) : wfMessage( 'interwiki-defaulturl' )->text(); |
| 125 | + $defaulturl = $wgRequest->getVal( 'wpInterwikiURL', wfMessage( 'interwiki-defaulturl' )->text() ); |
128 | 126 | $topmessage = wfMessage( 'interwiki_addtext' )->text(); |
129 | 127 | $intromessage = wfMessage( 'interwiki_addintro' )->text(); |
130 | 128 | $button = 'interwiki_addbutton'; |