Index: trunk/extensions/Interwiki/SpecialInterwiki_body.php |
— | — | @@ -80,7 +80,6 @@ |
81 | 81 | |
82 | 82 | $actionUrl = $this->getTitle()->getLocalURL( 'action=submit' ); |
83 | 83 | $token = $wgUser->editToken(); |
84 | | - $defaultreason = $wgRequest->getVal( 'wpInterwikiReason', wfMsgForContent( 'interwiki_defaultreason' ) ); |
85 | 84 | |
86 | 85 | switch( $action ){ |
87 | 86 | case 'delete': |
— | — | @@ -99,7 +98,7 @@ |
100 | 99 | "<tr><td>$deletingmessage</td></tr>". |
101 | 100 | '<tr><td class="mw-label">' . Xml::label( $reasonmessage, 'mw-interwiki-deletereason' ) . '</td>' . |
102 | 101 | '<td class="mw-input">' . |
103 | | - Xml::input( 'wpInterwikiReason', 60, $defaultreason, array( 'tabindex' => '1', 'id' => 'mw-interwiki-deletereason', 'maxlength' => '200' ) ) . |
| 102 | + Xml::input( 'wpInterwikiReason', 60, '', array( 'tabindex' => '1', 'id' => 'mw-interwiki-deletereason', 'maxlength' => '200' ) ) . |
104 | 103 | '</td></tr>' . |
105 | 104 | '<tr><td></td><td class="mw-submit">' . Xml::submitButton( $button, array( 'id' => 'mw-interwiki-submit' ) ) . |
106 | 105 | Xml::hidden( 'wpInterwikiPrefix', $prefix ) . |
— | — | @@ -148,8 +147,7 @@ |
149 | 148 | $urlmessage = wfMsg( 'interwiki_url' ); |
150 | 149 | |
151 | 150 | $wgOut->addHTML( |
152 | | - Xml::openElement( 'fieldset' ) . |
153 | | - Xml::element( 'legend', null, $topmessage ) . |
| 151 | + Xml::fieldset( $topmessage ) . |
154 | 152 | $intromessage . |
155 | 153 | Xml::openElement( 'form', array( 'id' => 'mw-interwiki-editform', 'method' => 'post', 'action' => $actionUrl ) ) . |
156 | 154 | Xml::openElement( 'table', array( 'id' => "mw-interwiki-$action" ) ) . |
— | — | @@ -161,7 +159,7 @@ |
162 | 160 | '<tr><td class="mw-label">' . Xml::label( $urlmessage, 'mw-interwiki-url' ) . '</td>' . |
163 | 161 | '<td class="mw-input">' . Xml::input( 'wpInterwikiURL', 60, $defaulturl, array( 'tabindex' => '1', 'maxlength' => '200', 'id' => 'mw-interwiki-url' ) ) . '</td></tr>' . |
164 | 162 | '<tr><td class="mw-label">' . Xml::label( $reasonmessage, 'mw-interwiki-editreason' ) . '</td>' . |
165 | | - '<td class="mw-input">' . Xml::input( 'wpInterwikiReason', 60, $defaultreason, array( 'tabindex' => '1', 'id' => 'mw-interwiki-editreason', 'maxlength' => '200' ) ) . |
| 163 | + '<td class="mw-input">' . Xml::input( 'wpInterwikiReason', 60, '', array( 'tabindex' => '1', 'id' => 'mw-interwiki-editreason', 'maxlength' => '200' ) ) . |
166 | 164 | Xml::hidden( 'wpInterwikiAction', $action ) . |
167 | 165 | $old . |
168 | 166 | Xml::hidden( 'wpEditToken', $token ) . |
Index: trunk/extensions/Interwiki/SpecialInterwiki.i18n.php |
— | — | @@ -50,8 +50,7 @@ |
51 | 51 | |
52 | 52 | # modifying permitted |
53 | 53 | 'interwiki_edit' => 'Edit', |
54 | | - 'interwiki_reasonfield' => 'Reason', |
55 | | - 'interwiki_defaultreason' => 'no reason given', |
| 54 | + 'interwiki_reasonfield' => 'Reason:', |
56 | 55 | |
57 | 56 | # deleting a prefix |
58 | 57 | 'interwiki_delquestion' => 'Deleting "$1"', |
Index: trunk/extensions/Interwiki/SpecialInterwiki.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | 'path' => __FILE__, |
28 | 28 | 'name' => 'SpecialInterwiki', |
29 | 29 | 'author' => array( 'Stephanie Amanda Stevens', 'SPQRobin', 'others' ), |
30 | | - 'version' => '1.3', |
| 30 | + 'version' => '1.3.1', |
31 | 31 | 'url' => 'http://www.mediawiki.org/wiki/Extension:SpecialInterwiki', |
32 | 32 | 'description' => 'Adds a [[Special:Interwiki|special page]] to view and edit the interwiki table', |
33 | 33 | 'descriptionmsg' => 'interwiki-desc', |