Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -54,13 +54,12 @@ |
55 | 55 | |
56 | 56 | // Handle translation message update |
57 | 57 | $update = $wgRequest->getArray( 'updateText' ); |
58 | | - $token = $wgRequest->getArray( 'token' ); |
59 | 58 | if ( isset ( $update ) ) { |
60 | 59 | foreach ( $update as $lang => $messages ) { |
61 | 60 | foreach ( $messages as $text => $translation ) { |
62 | 61 | // If we actually have text |
63 | 62 | if ( $translation ) { |
64 | | - $this->updateMessage( $text, $translation, $lang, $token ); |
| 63 | + $this->updateMessage( $text, $translation, $lang ); |
65 | 64 | } |
66 | 65 | } |
67 | 66 | } |
— | — | @@ -216,9 +215,6 @@ |
217 | 216 | $readonly = array( 'readonly' => 'readonly' ); |
218 | 217 | } |
219 | 218 | |
220 | | - // Get token |
221 | | - $token = $wgUser->editToken(); |
222 | | - |
223 | 219 | // Get user's language |
224 | 220 | $wpUserLang = $wgRequest->getVal( 'wpUserLanguage' ) ? $wgRequest->getVal( 'wpUserLanguage' ) : $wgContLanguageCode; |
225 | 221 | |
— | — | @@ -335,7 +331,6 @@ |
336 | 332 | $htmlOut .= Xml::closeElement( 'tr' ); |
337 | 333 | } |
338 | 334 | if ( $this->editable ) { |
339 | | - $htmlOut .= Xml::hidden( 'token', $token ); |
340 | 335 | $htmlOut .= Xml::hidden( 'wpUserLanguage', $wpUserLang ); |
341 | 336 | $htmlOut .= Xml::openElement( 'tr' ); |
342 | 337 | $htmlOut .= Xml::tags( 'td', array( 'colspan' => 4 ), |
— | — | @@ -481,7 +476,7 @@ |
482 | 477 | return $wgOut->addHtml( $htmlOut ); |
483 | 478 | } |
484 | 479 | |
485 | | - private function updateMessage( $text, $translation, $lang, $token = false ) { |
| 480 | + private function updateMessage( $text, $translation, $lang ) { |
486 | 481 | $title = Title::newFromText( |
487 | 482 | ( $lang == 'en' ) ? "Centralnotice-{$text}" : "Centralnotice-{$text}/{$lang}", |
488 | 483 | NS_MEDIAWIKI |