Index: trunk/extensions/Translate/tag/SpecialPageTranslationMovePage.php |
— | — | @@ -217,15 +217,14 @@ |
218 | 218 | |
219 | 219 | $br = Html::element( 'br' ); |
220 | 220 | $subaction = array( 'name' => 'subaction' ); |
221 | | - $disabled = array( 'disabled' => 'disabled' ); |
| 221 | + $readonly = array( 'readonly' => 'readonly' ); |
222 | 222 | $formParams = array( 'method' => 'post', 'action' => $this->getTitle( $this->oldText )->getLocalURL() ); |
223 | 223 | |
224 | 224 | $form = array(); |
225 | 225 | $form[] = Xml::fieldset( wfMsg( 'pt-movepage-legend' ) ); |
226 | 226 | $form[] = Html::openElement( 'form', $formParams ); |
227 | 227 | $form[] = Html::hidden( 'wpEditToken', $this->user->editToken() ); |
228 | | - $form[] = Html::hidden( 'wpOldTitle', $this->oldText ); |
229 | | - $this->addInputLabel( $form, wfMsg( 'pt-movepage-current' ), 'wpOldTitleFake', 30, $this->oldText, $disabled ); |
| 228 | + $this->addInputLabel( $form, wfMsg( 'pt-movepage-current' ), 'wpOldTitle', 30, $this->oldText, $readonly ); |
230 | 229 | $this->addInputLabel( $form, wfMsg( 'pt-movepage-new' ), 'wpNewTitle', 30, $this->newText ); |
231 | 230 | $this->addInputLabel( $form, wfMsg( 'pt-movepage-reason' ), 'reason', 60, $this->reason ); |
232 | 231 | $form[] = Xml::checkLabel( wfMsg( 'pt-movepage-subpages' ), 'subpages', 'mw-subpages', $this->moveSubpages ) . $br; |
— | — | @@ -293,7 +292,7 @@ |
294 | 293 | $wgOut->addWikiMsg( 'pt-movepage-list-count', $wgLang->formatNum( $count ) ); |
295 | 294 | |
296 | 295 | $br = Html::element( 'br' ); |
297 | | - $disabled = array( 'disabled' => 'disabled' ); |
| 296 | + $readonly = array( 'readonly' => 'readonly' ); |
298 | 297 | $subaction = array( 'name' => 'subaction' ); |
299 | 298 | $formParams = array( 'method' => 'post', 'action' => $this->getTitle( $this->oldText )->getLocalURL() ); |
300 | 299 | |
— | — | @@ -301,14 +300,11 @@ |
302 | 301 | $form[] = Xml::fieldset( wfMsg( 'pt-movepage-legend' ) ); |
303 | 302 | $form[] = Html::openElement( 'form', $formParams ); |
304 | 303 | $form[] = Html::hidden( 'wpEditToken', $this->user->editToken() ); |
305 | | - // Apparently HTML spec says that disabled elements are not submitted... ARGH! |
306 | | - $form[] = Html::hidden( 'wpOldTitle', $this->oldText ); |
307 | | - $form[] = Html::hidden( 'wpNewTitle', $this->newText ); |
308 | | - $this->addInputLabel( $form, wfMsg( 'pt-movepage-current' ), 'wpOldTitleFake', 30, $this->oldText, $disabled ); |
309 | | - $this->addInputLabel( $form, wfMsg( 'pt-movepage-new' ), 'wpNewTitleFake', 30, $this->newText, $disabled ); |
| 304 | + $this->addInputLabel( $form, wfMsg( 'pt-movepage-current' ), 'wpOldTitle', 30, $this->oldText, $readonly ); |
| 305 | + $this->addInputLabel( $form, wfMsg( 'pt-movepage-new' ), 'wpNewTitle', 30, $this->newText, $readonly ); |
310 | 306 | $this->addInputLabel( $form, wfMsg( 'pt-movepage-reason' ), 'reason', 60, $this->reason ); |
311 | 307 | $form[] = Html::hidden( 'subpages', $this->moveSubpages ); |
312 | | - $form[] = Xml::checkLabel( wfMsg( 'pt-movepage-subpages' ), 'subpagesFake', 'mw-subpages', $this->moveSubpages, $disabled ) . $br; |
| 308 | + $form[] = Xml::checkLabel( wfMsg( 'pt-movepage-subpages' ), 'subpagesFake', 'mw-subpages', $this->moveSubpages, $readonly ) . $br; |
313 | 309 | $form[] = Xml::submitButton( wfMsg( 'pt-movepage-action-perform' ), $subaction ); |
314 | 310 | $form[] = Xml::submitButton( wfMsg( 'pt-movepage-action-other' ), $subaction ); |
315 | 311 | $form[] = Html::closeElement( 'form' ); |