Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php |
— | — | @@ -501,8 +501,11 @@ |
502 | 502 | } |
503 | 503 | |
504 | 504 | // Show language selection form |
505 | | - $htmlOut .= Xml::openElement( 'form', array( 'method' => 'post' ) ); |
| 505 | + $actionTitle = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
| 506 | + $actionUrl = $actionTitle->getLocalURL(); |
| 507 | + $htmlOut .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $actionUrl ) ); |
506 | 508 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-change-lang' ) ); |
| 509 | + $htmlOut .= Html::hidden( 'template', $currentTemplate ); |
507 | 510 | $htmlOut .= Xml::openElement( 'table', array ( 'cellpadding' => 9 ) ); |
508 | 511 | list( $lsLabel, $lsSelect ) = Xml::languageSelector( $wpUserLang ); |
509 | 512 | |
— | — | @@ -525,7 +528,6 @@ |
526 | 529 | ) |
527 | 530 | ); |
528 | 531 | $htmlOut .= Xml::closeElement( 'table' ); |
529 | | - $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
530 | 532 | $htmlOut .= Xml::closeElement( 'fieldset' ); |
531 | 533 | $htmlOut .= Xml::closeElement( 'form' ); |
532 | 534 | } |