Index: trunk/extensions/ContactPage/SpecialContact.php |
— | — | @@ -270,7 +270,7 @@ |
271 | 271 | Xml::submitButton( wfMsg( 'emailsend' ), array( 'name' => 'wpSend', 'accesskey' => 's' ) ) . |
272 | 272 | '</td> |
273 | 273 | </tr>' . |
274 | | - Xml::hidden( 'wpEditToken', $token ) . |
| 274 | + Html::hidden( 'wpEditToken', $token ) . |
275 | 275 | Xml::closeElement( 'table' ) . |
276 | 276 | Xml::closeElement( 'fieldset' ) . |
277 | 277 | Xml::closeElement( 'form' ); |
Index: trunk/extensions/Collection/Collection.php |
— | — | @@ -253,9 +253,6 @@ |
254 | 254 | $wgAjaxExportList[] = 'wfAjaxCollectionGetBookCreatorBoxContent'; |
255 | 255 | |
256 | 256 | function wfAjaxCollectionGetItemList() { |
257 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
258 | | - wfLoadExtensionMessages( 'Collection' ); |
259 | | - |
260 | 257 | $collection = $_SESSION['wsCollection']; |
261 | 258 | |
262 | 259 | $template = new CollectionListTemplate(); |
— | — | @@ -331,7 +328,6 @@ |
332 | 329 | function wfAjaxCollectionGetPopupData( $title ) { |
333 | 330 | global $wgScriptPath; |
334 | 331 | |
335 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
336 | 332 | $json = new Services_JSON(); |
337 | 333 | $result = array(); |
338 | 334 | $imagePath = "$wgScriptPath/extensions/Collection/images"; |
— | — | @@ -365,9 +361,6 @@ |
366 | 362 | * @return AjaxResponse with JSON-encoded array including HTML fragment. |
367 | 363 | */ |
368 | 364 | function wfCollectionSuggestAction( $action, $article ) { |
369 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
370 | | - wfLoadExtensionMessages( 'Collection' ); |
371 | | - |
372 | 365 | $json = new Services_JSON(); |
373 | 366 | $result = CollectionSuggest::refresh( $action, $article ); |
374 | 367 | $undoLink = Xml::element( 'a', |
— | — | @@ -412,9 +405,6 @@ |
413 | 406 | $wgAjaxExportList[] = 'wfAjaxCollectionSuggestRemoveArticle'; |
414 | 407 | |
415 | 408 | function wfAjaxCollectionSuggestUndoArticle( $lastAction, $article ) { |
416 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
417 | | - wfLoadExtensionMessages( 'Collection' ); |
418 | | - |
419 | 409 | $json = new Services_JSON(); |
420 | 410 | $result = CollectionSuggest::undo( $lastAction, $article ); |
421 | 411 | $r = new AjaxResponse( $json->encode( $result ) ); |
Index: trunk/extensions/Collection/Collection.hooks.php |
— | — | @@ -95,8 +95,6 @@ |
96 | 96 | return false; |
97 | 97 | } |
98 | 98 | |
99 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
100 | | - |
101 | 99 | $sk = $wgUser->getSkin(); |
102 | 100 | |
103 | 101 | $out = Xml::element( 'ul', array( 'id' => 'collectionPortletList' ), null ); |
— | — | @@ -242,8 +240,6 @@ |
243 | 241 | global $wgTitle; |
244 | 242 | global $wgUser; |
245 | 243 | |
246 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
247 | | - |
248 | 244 | $sk = $wgUser->getSkin(); |
249 | 245 | $jsPath = "$wgScriptPath/extensions/Collection/js"; |
250 | 246 | $imagePath = "$wgScriptPath/extensions/Collection/images"; |
— | — | @@ -386,8 +382,6 @@ |
387 | 383 | global $wgUser; |
388 | 384 | global $wgScriptPath; |
389 | 385 | |
390 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
391 | | - |
392 | 386 | $sk = $wgUser->getSkin(); |
393 | 387 | $imagePath = "$wgScriptPath/extensions/Collection/images"; |
394 | 388 | |
Index: trunk/extensions/Collection/Collection.body.php |
— | — | @@ -486,8 +486,6 @@ |
487 | 487 | global $wgUser; |
488 | 488 | global $wgCommunityCollectionNamespace; |
489 | 489 | |
490 | | - wfLoadExtensionMessages( 'CollectionCore' ); |
491 | | - |
492 | 490 | $result = array(); |
493 | 491 | |
494 | 492 | $t = wfMsgForContent( 'coll-user_book_prefix', $wgUser->getName() ); |
— | — | @@ -931,8 +929,6 @@ |
932 | 930 | global $wgRightsText; |
933 | 931 | global $wgRightsUrl; |
934 | 932 | |
935 | | - wfLoadExtensionMessages( 'Collection' ); |
936 | | - |
937 | 933 | $licenseInfo = array( |
938 | 934 | "type" => "license", |
939 | 935 | ); |
Index: trunk/extensions/Renameuser/Renameuser_body.php |
— | — | @@ -160,7 +160,7 @@ |
161 | 161 | </tr>" . |
162 | 162 | Xml::closeElement( 'table' ) . |
163 | 163 | Xml::closeElement( 'fieldset' ) . |
164 | | - Xml::hidden( 'token', $token ) . |
| 164 | + Html::hidden( 'token', $token ) . |
165 | 165 | Xml::closeElement( 'form' ) . "\n" |
166 | 166 | ); |
167 | 167 | |
Index: trunk/extensions/NewUserMessage/NewUserMessage.class.php |
— | — | @@ -140,8 +140,6 @@ |
141 | 141 | $talk = $user->getTalkPage(); |
142 | 142 | |
143 | 143 | if ( !$talk->exists() ) { |
144 | | - wfLoadExtensionMessages( 'NewUserMessage' ); |
145 | | - |
146 | 144 | $subject = self::fetchSubject(); |
147 | 145 | $text = self::fetchText(); |
148 | 146 | $signature = self::fetchSignature(); |
— | — | @@ -177,7 +175,6 @@ |
178 | 176 | * @param $names Array |
179 | 177 | */ |
180 | 178 | static function onUserGetReservedNames( &$names ) { |
181 | | - wfLoadExtensionMessages( 'NewUserMessage' ); |
182 | 179 | $names[] = 'msg:newusermessage-editor'; |
183 | 180 | return true; |
184 | 181 | } |
Index: trunk/extensions/AntiSpoof/AntiSpoof_body.php |
— | — | @@ -262,7 +262,6 @@ |
263 | 263 | |
264 | 264 | # TODO: does too much in one routine, refactor... |
265 | 265 | public static function checkUnicodeString( $testName ) { |
266 | | - wfLoadExtensionMessages( 'AntiSpoof' ); |
267 | 266 | # Start with some sanity checking |
268 | 267 | if ( !is_string( $testName ) ) { |
269 | 268 | return array( "ERROR", wfMsg( 'antispoof-badtype' ) ); |
Index: trunk/extensions/AntiSpoof/AntiSpoof.php |
— | — | @@ -113,7 +113,6 @@ |
114 | 114 | function asUserCreateFormHook( &$template ) { |
115 | 115 | global $wgRequest, $wgAntiSpoofAccounts, $wgUser; |
116 | 116 | |
117 | | - wfLoadExtensionMessages( 'AntiSpoof' ); |
118 | 117 | |
119 | 118 | if ( $wgAntiSpoofAccounts && $wgUser->isAllowed( 'override-antispoof' ) ) |
120 | 119 | $template->addInputItem( 'wpIgnoreAntiSpoof', |
Index: trunk/extensions/Oversight/HideRevision_body.php |
— | — | @@ -185,13 +185,13 @@ |
186 | 186 | function revisionFields() { |
187 | 187 | $out = ''; |
188 | 188 | foreach( $this->mRevisions as $id ) { |
189 | | - $out .= Xml::hidden( 'revision[]', $id ); |
| 189 | + $out .= Html::hidden( 'revision[]', $id ); |
190 | 190 | } |
191 | 191 | if( $this->mTarget ) { |
192 | | - $out .= Xml::hidden( 'target', $this->mTarget->getPrefixedDbKey() ); |
| 192 | + $out .= Html::hidden( 'target', $this->mTarget->getPrefixedDbKey() ); |
193 | 193 | } |
194 | 194 | foreach( $this->mTimestamps as $timestamp ) { |
195 | | - $out .= Xml::hidden( 'timestamp[]', wfTimestamp( TS_MW, $timestamp ) ); |
| 195 | + $out .= Html::hidden( 'timestamp[]', wfTimestamp( TS_MW, $timestamp ) ); |
196 | 196 | } |
197 | 197 | return $out; |
198 | 198 | } |
— | — | @@ -348,7 +348,6 @@ |
349 | 349 | class SpecialOversight extends SpecialPage { |
350 | 350 | |
351 | 351 | function __construct(){ |
352 | | - wfLoadExtensionMessages('HideRevision'); |
353 | 352 | parent::__construct( 'Oversight', 'oversight' ); |
354 | 353 | } |
355 | 354 | |
— | — | @@ -389,7 +388,7 @@ |
390 | 389 | $wgOut->addHTML( |
391 | 390 | Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get', 'id' => 'mw-hiderevision-form' ) ) . |
392 | 391 | Xml::fieldset( wfMsg( 'oversight-legend' ) ) . |
393 | | - Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ) . |
| 392 | + Html::hidden( 'title', $wgTitle->getPrefixedDbKey() ) . |
394 | 393 | Xml::inputLabel( wfMsg( 'oversight-oversighter' ), 'user', 'mw-oversight-user', 20, $user ) . ' ' . |
395 | 394 | Xml::inputLabel( wfMsg( 'speciallogtitlelabel' ), 'page', 'mw-oversight-page', 25, $page ) . ' ' . |
396 | 395 | Xml::inputLabel( wfMsg( 'oversight-offender' ), 'author', 'mw-oversight-author', 20, $offender ) . ' ' . |
Index: trunk/extensions/OggHandler/OggHandler_body.php |
— | — | @@ -351,7 +351,6 @@ |
352 | 352 | |
353 | 353 | function getShortDesc( $file ) { |
354 | 354 | global $wgLang, $wgOggAudioTypes, $wgOggVideoTypes; |
355 | | - wfLoadExtensionMessages( 'OggHandler' ); |
356 | 355 | $streamTypes = $this->getStreamTypes( $file ); |
357 | 356 | if ( !$streamTypes ) { |
358 | 357 | return parent::getShortDesc( $file ); |
— | — | @@ -370,7 +369,7 @@ |
371 | 370 | |
372 | 371 | function getLongDesc( $file ) { |
373 | 372 | global $wgLang, $wgOggVideoTypes, $wgOggAudioTypes; |
374 | | - wfLoadExtensionMessages( 'OggHandler' ); |
| 373 | + |
375 | 374 | $streamTypes = $this->getStreamTypes( $file ); |
376 | 375 | if ( !$streamTypes ) { |
377 | 376 | $unpacked = $this->unpackMetadata( $file->getMetadata() ); |
— | — | @@ -409,7 +408,6 @@ |
410 | 409 | |
411 | 410 | function getDimensionsString( $file ) { |
412 | 411 | global $wgLang; |
413 | | - wfLoadExtensionMessages( 'OggHandler' ); |
414 | 412 | if ( $file->getWidth() ) { |
415 | 413 | return wfMsg( 'video-dims', $wgLang->formatTimePeriod( $this->getLength( $file ) ), |
416 | 414 | $wgLang->formatNum( $file->getWidth() ), |
— | — | @@ -432,8 +430,6 @@ |
433 | 431 | return; |
434 | 432 | } |
435 | 433 | |
436 | | - wfLoadExtensionMessages( 'OggHandler' ); |
437 | | - |
438 | 434 | $msgNames = array( 'ogg-play', 'ogg-pause', 'ogg-stop', 'ogg-no-player', |
439 | 435 | 'ogg-player-videoElement', 'ogg-player-oggPlugin', 'ogg-player-cortado', 'ogg-player-vlc-mozilla', |
440 | 436 | 'ogg-player-vlc-activex', 'ogg-player-quicktime-mozilla', 'ogg-player-quicktime-activex', |
— | — | @@ -512,7 +508,6 @@ |
513 | 509 | } |
514 | 510 | |
515 | 511 | function toHtml( $options = array() ) { |
516 | | - wfLoadExtensionMessages( 'OggHandler' ); |
517 | 512 | if ( count( func_get_args() ) == 2 ) { |
518 | 513 | throw new MWException( __METHOD__ .' called in the old style' ); |
519 | 514 | } |
Index: trunk/extensions/TorBlock/TorBlock.class.php |
— | — | @@ -256,7 +256,6 @@ |
257 | 257 | return true; |
258 | 258 | } |
259 | 259 | |
260 | | - wfLoadExtensionMessages( 'TorBlock' ); |
261 | 260 | $msg[] = Html::rawElement( |
262 | 261 | 'span', |
263 | 262 | array( 'class' => 'mw-torblock-isexitnode' ), |
Index: trunk/extensions/CentralNotice/TemplatePager.php |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | $htmlOut = ''; |
103 | 103 | $htmlOut .= Xml::closeElement( 'table' ); |
104 | 104 | if ( $this->editable ) { |
105 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
| 105 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
106 | 106 | $htmlOut .= Xml::tags( 'div', |
107 | 107 | array( 'class' => 'cn-buttons' ), |
108 | 108 | Xml::submitButton( wfMsg( 'centralnotice-modify' ) ) |
Index: trunk/extensions/CentralNotice/SpecialCentralNotice.php |
— | — | @@ -474,8 +474,8 @@ |
475 | 475 | // Form for adding a campaign |
476 | 476 | $htmlOut .= Xml::openElement( 'form', array( 'method' => 'post' ) ); |
477 | 477 | $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-add-notice' ) ); |
478 | | - $htmlOut .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
479 | | - $htmlOut .= Xml::hidden( 'method', 'addNotice' ); |
| 478 | + $htmlOut .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
| 479 | + $htmlOut .= Html::hidden( 'method', 'addNotice' ); |
480 | 480 | |
481 | 481 | $htmlOut .= Xml::openElement( 'table', array ( 'cellpadding' => 9 ) ); |
482 | 482 | |
— | — | @@ -515,8 +515,8 @@ |
516 | 516 | $htmlOut .= Xml::closeElement( 'tr' ); |
517 | 517 | |
518 | 518 | $htmlOut .= Xml::closeElement( 'table' ); |
519 | | - $htmlOut .= Xml::hidden( 'change', 'weight' ); |
520 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
| 519 | + $htmlOut .= Html::hidden( 'change', 'weight' ); |
| 520 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
521 | 521 | |
522 | 522 | // Submit button |
523 | 523 | $htmlOut .= Xml::tags( 'div', |
— | — | @@ -899,7 +899,7 @@ |
900 | 900 | } |
901 | 901 | |
902 | 902 | // Build Assigned banners HTML |
903 | | - $htmlOut = Xml::hidden( 'change', 'weight' ); |
| 903 | + $htmlOut = Html::hidden( 'change', 'weight' ); |
904 | 904 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-assigned-templates' ) ); |
905 | 905 | $htmlOut .= Xml::openElement( 'table', |
906 | 906 | array( |
Index: trunk/extensions/CentralNotice/SpecialNoticeTemplate.php |
— | — | @@ -221,7 +221,7 @@ |
222 | 222 | $htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
223 | 223 | $htmlOut .= Xml::openElement( 'form', array( 'method' => 'post', 'onsubmit' => 'return validateBannerForm(this)' ) ); |
224 | 224 | $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-add-template' ) ); |
225 | | - $htmlOut .= Xml::hidden( 'wpMethod', 'addTemplate' ); |
| 225 | + $htmlOut .= Html::hidden( 'wpMethod', 'addTemplate' ); |
226 | 226 | $htmlOut .= Xml::tags( 'p', null, |
227 | 227 | Xml::inputLabel( wfMsg( 'centralnotice-banner-name' ), 'templateName', 'templateName', 25, $wgRequest->getVal( 'templateName' ) ) |
228 | 228 | ); |
— | — | @@ -260,7 +260,7 @@ |
261 | 261 | |
262 | 262 | $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20 ); |
263 | 263 | $htmlOut .= Xml::closeElement( 'fieldset' ); |
264 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
| 264 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
265 | 265 | |
266 | 266 | // Submit button |
267 | 267 | $htmlOut .= Xml::tags( 'div', |
— | — | @@ -426,9 +426,9 @@ |
427 | 427 | $htmlOut .= Xml::closeElement( 'table' ); |
428 | 428 | |
429 | 429 | if ( $this->editable ) { |
430 | | - $htmlOut .= Xml::hidden( 'wpUserLanguage', $wpUserLang ); |
431 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
432 | | - $htmlOut .= Xml::tags( 'div', |
| 430 | + $htmlOut .= Html::hidden( 'wpUserLanguage', $wpUserLang ); |
| 431 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
| 432 | + $htmlOut .= Xml::tags( 'div', |
433 | 433 | array( 'class' => 'cn-buttons' ), |
434 | 434 | Xml::submitButton( wfMsg( 'centralnotice-modify' ), array( 'name' => 'update' ) ) |
435 | 435 | ); |
— | — | @@ -460,7 +460,7 @@ |
461 | 461 | Xml::tags( 'td', null, $sk->makeLinkObj( $newPage, wfMsgHtml( 'centralnotice-preview-all-template-translations' ), "template=$currentTemplate&wpUserLanguage=all" ) ) |
462 | 462 | ); |
463 | 463 | $htmlOut .= Xml::closeElement( 'table' ); |
464 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
| 464 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
465 | 465 | $htmlOut .= Xml::closeElement( 'fieldset' ); |
466 | 466 | $htmlOut .= Xml::closeElement( 'form' ); |
467 | 467 | } |
— | — | @@ -468,7 +468,7 @@ |
469 | 469 | // Show edit form |
470 | 470 | if ( $this->editable ) { |
471 | 471 | $htmlOut .= Xml::openElement( 'form', array( 'method' => 'post', 'onsubmit' => 'return validateBannerForm(this)' ) ); |
472 | | - $htmlOut .= Xml::hidden( 'wpMethod', 'editTemplate' ); |
| 472 | + $htmlOut .= Html::hidden( 'wpMethod', 'editTemplate' ); |
473 | 473 | } |
474 | 474 | |
475 | 475 | // If there was an error, we'll need to restore the state of the form |
— | — | @@ -508,8 +508,8 @@ |
509 | 509 | $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20, $readonly ); |
510 | 510 | $htmlOut .= Xml::closeElement( 'fieldset' ); |
511 | 511 | if ( $this->editable ) { |
512 | | - $htmlOut .= Xml::hidden( 'mainform', 'true' ); // Indicate which form was submitted |
513 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
| 512 | + $htmlOut .= Html::hidden( 'mainform', 'true' ); // Indicate which form was submitted |
| 513 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
514 | 514 | $htmlOut .= Xml::tags( 'div', |
515 | 515 | array( 'class' => 'cn-buttons' ), |
516 | 516 | Xml::submitButton( wfMsg( 'centralnotice-save-banner' ) ) |
— | — | @@ -531,11 +531,11 @@ |
532 | 532 | $htmlOut .= Xml::openElement( 'tr' ); |
533 | 533 | $htmlOut .= Xml::inputLabel( wfMsg( 'centralnotice-clone-name' ), 'newTemplate', 'newTemplate', '25' ); |
534 | 534 | $htmlOut .= Xml::submitButton( wfMsg( 'centralnotice-clone' ), array ( 'id' => 'clone' ) ); |
535 | | - $htmlOut .= Xml::hidden( 'oldTemplate', $currentTemplate ); |
| 535 | + $htmlOut .= Html::hidden( 'oldTemplate', $currentTemplate ); |
536 | 536 | |
537 | 537 | $htmlOut .= Xml::closeElement( 'tr' ); |
538 | 538 | $htmlOut .= Xml::closeElement( 'table' ); |
539 | | - $htmlOut .= Xml::hidden( 'authtoken', $wgUser->editToken() ); |
| 539 | + $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
540 | 540 | $htmlOut .= Xml::closeElement( 'fieldset' ); |
541 | 541 | $htmlOut .= Xml::closeElement( 'form' ); |
542 | 542 | } |
Index: trunk/extensions/SyntaxHighlight_GeSHi/SyntaxHighlight_GeSHi.class.php |
— | — | @@ -310,7 +310,6 @@ |
311 | 311 | */ |
312 | 312 | private static function initialise() { |
313 | 313 | if( !self::$initialised ) { |
314 | | - wfLoadExtensionMessages( 'SyntaxHighlight_GeSHi' ); |
315 | 314 | if( !class_exists( 'GeSHi' ) ) { |
316 | 315 | require( 'geshi/geshi.php' ); |
317 | 316 | } |
Index: trunk/extensions/GlobalBlocking/SpecialRemoveGlobalBlock.php |
— | — | @@ -109,8 +109,8 @@ |
110 | 110 | $form .= Xml::openElement( 'fieldset' ) . Xml::element( 'legend', null, wfMsg( 'globalblocking-unblock-legend' ) ); |
111 | 111 | $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $wgScript, 'name' => 'globalblock-unblock' ) ); |
112 | 112 | |
113 | | - $form .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
114 | | - $form .= Xml::hidden( 'action', 'unblock' ); |
| 113 | + $form .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
| 114 | + $form .= Html::hidden( 'action', 'unblock' ); |
115 | 115 | |
116 | 116 | $fields = array(); |
117 | 117 | |
— | — | @@ -119,7 +119,7 @@ |
120 | 120 | |
121 | 121 | $form .= Xml::buildForm( $fields, 'globalblocking-unblock-submit' ); |
122 | 122 | |
123 | | - $form .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 123 | + $form .= Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
124 | 124 | |
125 | 125 | $form .= Xml::closeElement( 'form' ); |
126 | 126 | $form .= Xml::closeElement( 'fieldset' ); |
Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlock.php |
— | — | @@ -176,7 +176,7 @@ |
177 | 177 | 'action' => $wgScript, |
178 | 178 | 'name' => 'uluser', |
179 | 179 | 'id' => 'mw-globalblock-form' ) ); |
180 | | - $form .= Xml::hidden( 'title', SpecialPage::getTitleFor('GlobalBlock')->getPrefixedText() ); |
| 180 | + $form .= Html::hidden( 'title', SpecialPage::getTitleFor('GlobalBlock')->getPrefixedText() ); |
181 | 181 | |
182 | 182 | $fields = array (); |
183 | 183 | |
— | — | @@ -259,7 +259,7 @@ |
260 | 260 | |
261 | 261 | $form .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
262 | 262 | if ($this->mModifyForm) |
263 | | - $form .= Xml::hidden( 'wpModify', 1 ); |
| 263 | + $form .= Html::hidden( 'wpModify', 1 ); |
264 | 264 | |
265 | 265 | $form .= Xml::closeElement( 'form' ); |
266 | 266 | $form .= Xml::closeElement( 'fieldset' ); |
Index: trunk/extensions/GlobalBlocking/GlobalBlocking.class.php |
— | — | @@ -283,7 +283,6 @@ |
284 | 284 | global $wgUser; |
285 | 285 | |
286 | 286 | if ( GlobalBlocking::getUserBlockErrors( $wgUser, wfGetIp() ) ) { |
287 | | - wfLoadExtensionMessages( 'GlobalBlocking' ); |
288 | 287 | $error = wfMsg( 'globalblocking-blocked-nopassreset' ); |
289 | 288 | return false; |
290 | 289 | } |
— | — | @@ -308,7 +307,6 @@ |
309 | 308 | return true; |
310 | 309 | } |
311 | 310 | |
312 | | - wfLoadExtensionMessages( 'GlobalBlocking' ); |
313 | 311 | $msg[] = Html::rawElement( |
314 | 312 | 'span', |
315 | 313 | array( 'class' => 'mw-globalblock-loglink plainlinks' ), |
Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlockStatus.php |
— | — | @@ -145,8 +145,8 @@ |
146 | 146 | $form .= Xml::openElement( 'fieldset' ) . Xml::element( 'legend', null, wfMsg( 'globalblocking-whitelist-legend' ) ); |
147 | 147 | $form .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->getFullURL(), 'name' => 'globalblock-whitelist' ) ); |
148 | 148 | |
149 | | - $form .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
150 | | - $form .= Xml::hidden( 'action', 'whitelist' ); |
| 149 | + $form .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
| 150 | + $form .= Html::hidden( 'action', 'whitelist' ); |
151 | 151 | |
152 | 152 | $fields = array(); |
153 | 153 | |
— | — | @@ -156,7 +156,7 @@ |
157 | 157 | |
158 | 158 | $form .= Xml::buildForm( $fields, 'globalblocking-whitelist-submit' ); |
159 | 159 | |
160 | | - $form .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 160 | + $form .= Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
161 | 161 | |
162 | 162 | $form .= Xml::closeElement( 'form' ); |
163 | 163 | $form .= Xml::closeElement( 'fieldset' ); |
Index: trunk/extensions/GlobalBlocking/SpecialGlobalBlockList.php |
— | — | @@ -42,7 +42,7 @@ |
43 | 43 | $searchForm .= Xml::openElement( 'fieldset' ) . |
44 | 44 | Xml::element( 'legend', null, wfMsg( 'globalblocking-search-legend' ) ); |
45 | 45 | $searchForm .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'name' => 'globalblocklist-search' ) ); |
46 | | - $searchForm .= Xml::hidden( 'title', SpecialPage::getTitleFor('GlobalBlockList')->getPrefixedText() ); |
| 46 | + $searchForm .= Html::hidden( 'title', SpecialPage::getTitleFor('GlobalBlockList')->getPrefixedText() ); |
47 | 47 | |
48 | 48 | if (is_array($errors) && count($errors)>0) { |
49 | 49 | $errorstr = ''; |
Index: trunk/extensions/Gadgets/Gadgets.php |
— | — | @@ -122,8 +122,6 @@ |
123 | 123 | $gadgets = wfLoadGadgetsStructured(); |
124 | 124 | if (!$gadgets) return true; |
125 | 125 | |
126 | | - wfLoadExtensionMessages( 'Gadgets' ); |
127 | | - |
128 | 126 | $options = array(); |
129 | 127 | foreach( $gadgets as $section => $thisSection ) { |
130 | 128 | if ( $section !== '' ) { |
Index: trunk/extensions/ParserFunctions/ParserFunctions_body.php |
— | — | @@ -288,7 +288,6 @@ |
289 | 289 | if ( $current == '..' ) { // removing one level |
290 | 290 | if ( !count( $newExploded ) ) { |
291 | 291 | // attempted to access a node above root node |
292 | | - wfLoadExtensionMessages( 'ParserFunctions' ); |
293 | 292 | return '<strong class="error">' . wfMsgForContent( 'pfunc_rel2abs_invalid_depth', $fullPath ) . '</strong>'; |
294 | 293 | } |
295 | 294 | // remove last level from the stack |
— | — | @@ -460,12 +459,10 @@ |
461 | 460 | |
462 | 461 | # format the timestamp and return the result |
463 | 462 | if ( $invalidTime ) { |
464 | | - wfLoadExtensionMessages( 'ParserFunctions' ); |
465 | 463 | $result = '<strong class="error">' . wfMsgForContent( 'pfunc_time_error' ) . '</strong>'; |
466 | 464 | } else { |
467 | 465 | $this->mTimeChars += strlen( $format ); |
468 | 466 | if ( $this->mTimeChars > $this->mMaxTimeChars ) { |
469 | | - wfLoadExtensionMessages( 'ParserFunctions' ); |
470 | 467 | return '<strong class="error">' . wfMsgForContent( 'pfunc_time_too_long' ) . '</strong>'; |
471 | 468 | } else { |
472 | 469 | $result = $wgContLang->sprintfDate( $format, $ts ); |
— | — | @@ -521,8 +518,6 @@ |
522 | 519 | // Generates error message. Called when string is too long. |
523 | 520 | private function tooLongError() { |
524 | 521 | global $wgPFStringLengthLimit, $wgContLang; |
525 | | - wfLoadExtensionMessages( 'ParserFunctions' ); |
526 | | - |
527 | 522 | return '<strong class="error">' . |
528 | 523 | wfMsgExt( 'pfunc_string_too_long', |
529 | 524 | array( 'escape', 'parsemag', 'content' ), |
Index: trunk/extensions/Cite/Cite_body.php |
— | — | @@ -152,7 +152,6 @@ |
153 | 153 | * @return string |
154 | 154 | */ |
155 | 155 | function ref( $str, $argv, $parser ) { |
156 | | - wfLoadExtensionMessages( 'Cite' ); |
157 | 156 | if ( $this->mInCite ) { |
158 | 157 | return htmlspecialchars( "<ref>$str</ref>" ); |
159 | 158 | } else { |
— | — | @@ -489,7 +488,6 @@ |
490 | 489 | * @return string |
491 | 490 | */ |
492 | 491 | function references( $str, $argv, $parser ) { |
493 | | - wfLoadExtensionMessages( 'Cite' ); |
494 | 492 | if ( $this->mInCite || $this->mInReferences ) { |
495 | 493 | if ( is_null( $str ) ) { |
496 | 494 | return htmlspecialchars( "<references/>" ); |
Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -204,7 +204,6 @@ |
205 | 205 | |
206 | 206 | function execute( $par ) { |
207 | 207 | global $wgOut, $wgRequest, $wgLanguageNames; |
208 | | - wfLoadExtensionMessages( 'SiteMatrix' ); |
209 | 208 | |
210 | 209 | $this->setHeaders(); |
211 | 210 | $this->outputHeader(); |
Index: trunk/extensions/CategoryTree/CategoryTreePage.php |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | $wgOut->addHTML( Xml::openElement( 'form', array( 'name' => 'categorytree', 'method' => 'get', 'action' => $wgScript, 'id' => 'mw-categorytree-form' ) ) ); |
111 | 111 | $wgOut->addHTML( Xml::openElement( 'fieldset' ) ); |
112 | 112 | $wgOut->addHTML( Xml::element( 'legend', null, wfMsgNoTrans( 'categorytree-legend' ) ) ); |
113 | | - $wgOut->addHTML( Xml::hidden( 'title', $thisTitle->getPrefixedDbKey() ) ); |
| 113 | + $wgOut->addHTML( Xml::Html( 'title', $thisTitle->getPrefixedDbKey() ) ); |
114 | 114 | $wgOut->addHTML( Xml::inputLabel( wfMsgNoTrans( 'categorytree-category' ), 'target', 'target', 20, $this->target ) . ' ' ); |
115 | 115 | $wgOut->addHTML( Xml::openElement( 'select', array( 'name' => 'mode' ) ) ); |
116 | 116 | $wgOut->addHTML( Xml::option( wfMsgNoTrans( 'categorytree-mode-categories' ), 'categories', $mode == CT_MODE_CATEGORIES ? true : false ) ); |
Index: trunk/extensions/CentralAuth/SpecialWikiSets.php |
— | — | @@ -141,7 +141,7 @@ |
142 | 142 | |
143 | 143 | $wgOut->addHTML( Xml::buildForm( $form, 'centralauth-editset-submit' ) ); |
144 | 144 | |
145 | | - $edittoken = Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 145 | + $edittoken = Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
146 | 146 | $wgOut->addHTML( "<p>{$edittoken}</p></form></fieldset>" ); |
147 | 147 | } else { |
148 | 148 | $form = array(); |
— | — | @@ -185,7 +185,7 @@ |
186 | 186 | $legend = wfMsgHtml( 'centralauth-editset-legend-delete', $set->getName() ); |
187 | 187 | $form = array( 'centralauth-editset-reason' => Xml::input( 'wpReason' ) ); |
188 | 188 | $url = htmlspecialchars( SpecialPage::getTitleFor( 'WikiSets', "delete/{$subpage}" )->getLocalUrl() ); |
189 | | - $edittoken = Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 189 | + $edittoken = Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
190 | 190 | |
191 | 191 | $wgOut->addHTML( "<fieldset><legend>{$legend}</legend><form action='{$url}' method='post'>" ); |
192 | 192 | $wgOut->addHTML( Xml::buildForm( $form, 'centralauth-editset-submit-delete' ) ); |
Index: trunk/extensions/CentralAuth/SpecialGlobalGroupPermissions.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | $html = Xml::fieldset( wfMsg( 'centralauth-newgroup-legend' ) ); |
98 | 98 | $html .= wfMsgExt( 'centralauth-newgroup-intro', array( 'parse' ) ); |
99 | 99 | $html .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => $wgScript, 'name' => 'centralauth-globalgroups-newgroup' ) ); |
100 | | - $html .= Xml::hidden( 'title', SpecialPage::getTitleFor( 'GlobalGroupPermissions' )->getPrefixedText() ); |
| 100 | + $html .= Html::hidden( 'title', SpecialPage::getTitleFor( 'GlobalGroupPermissions' )->getPrefixedText() ); |
101 | 101 | |
102 | 102 | $fields = array( 'centralauth-globalgroupperms-newgroupname' => Xml::input( 'wpGroup' ) ); |
103 | 103 | |
— | — | @@ -119,8 +119,8 @@ |
120 | 120 | |
121 | 121 | if ( $editable ) { |
122 | 122 | $html .= Xml::openElement( 'form', array( 'method' => 'post', 'action' => SpecialPage::getTitleFor( 'GlobalGroupPermissions', $group )->getLocalUrl(), 'name' => 'centralauth-globalgroups-newgroup' ) ); |
123 | | - $html .= Xml::hidden( 'wpGroup', $group ); |
124 | | - $html .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 123 | + $html .= Html::hidden( 'wpGroup', $group ); |
| 124 | + $html .= Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
125 | 125 | } |
126 | 126 | |
127 | 127 | $fields = array(); |
Index: trunk/extensions/CentralAuth/CentralAuth.php |
— | — | @@ -247,7 +247,6 @@ |
248 | 248 | $wgLogActionsHandlers["gblrights/{$type}"] = 'efHandleWikiSetLogEntry'; |
249 | 249 | |
250 | 250 | function efHandleWikiSetLogEntry( $type, $action, $title, $skin, $params, $filterWikilinks = false ) { |
251 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
252 | 251 | $link = $skin ? $skin->makeLinkObj( $title, $params[0] ) : $params[0]; |
253 | 252 | if ( $action == 'newset' ) { |
254 | 253 | $args = array( WikiSet::formatType( $params[1] ), $params[2] ); |
Index: trunk/extensions/CentralAuth/SpecialCentralAuth.php |
— | — | @@ -230,7 +230,7 @@ |
231 | 231 | 'action' => $wgScript ) ) . |
232 | 232 | '<fieldset>' . |
233 | 233 | Xml::element( 'legend', array(), wfMsg( 'centralauth-admin-manage' ) ) . |
234 | | - Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
| 234 | + Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
235 | 235 | '<p>' . |
236 | 236 | Xml::inputLabel( wfMsg( 'centralauth-admin-username' ), |
237 | 237 | 'target', 'target', 25, $this->mUserName ) . |
— | — | @@ -314,8 +314,8 @@ |
315 | 315 | 'action' => |
316 | 316 | $this->getTitle( $this->mUserName )->getLocalUrl( 'action=submit' ), |
317 | 317 | 'id' => 'mw-centralauth-merged' ) ) . |
318 | | - Xml::hidden( 'wpMethod', 'unmerge' ) . |
319 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 318 | + Html::hidden( 'wpMethod', 'unmerge' ) . |
| 319 | + Html::hidden( 'wpEditToken', $wgUser->editToken() ) . |
320 | 320 | Xml::openElement( 'table', array( 'class' => 'wikitable sortable mw-centralauth-wikislist' ) ) . "\n" . |
321 | 321 | '<thead><tr>' . |
322 | 322 | ( $this->mCanUnmerge ? '<th></th>' : '' ) . |
— | — | @@ -487,8 +487,8 @@ |
488 | 488 | 'method' => 'POST', |
489 | 489 | 'action' => $this->getTitle()->getFullUrl( 'target=' . urlencode( $this->mUserName ) ), |
490 | 490 | 'id' => "mw-centralauth-$action" ) ) . |
491 | | - Xml::hidden( 'wpMethod', $action ) . |
492 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 491 | + Html::hidden( 'wpMethod', $action ) . |
| 492 | + Html::hidden( 'wpEditToken', $wgUser->editToken() ) . |
493 | 493 | wfMsgExt( "centralauth-admin-{$action}-description", 'parse' ) . |
494 | 494 | Xml::buildForm( |
495 | 495 | array( 'centralauth-admin-reason' => Xml::input( 'reason', |
— | — | @@ -503,8 +503,8 @@ |
504 | 504 | global $wgUser, $wgOut; |
505 | 505 | $form = ''; |
506 | 506 | $form .= Xml::fieldset( wfMsg( 'centralauth-admin-status' ) ); |
507 | | - $form .= Xml::hidden( 'wpMethod', 'set-status' ); |
508 | | - $form .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 507 | + $form .= Html::hidden( 'wpMethod', 'set-status' ); |
| 508 | + $form .= Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
509 | 509 | $form .= wfMsgExt( 'centralauth-admin-status-intro', 'parse' ); |
510 | 510 | |
511 | 511 | // Radio buttons |
Index: trunk/extensions/CentralAuth/SpecialMergeAccount.php |
— | — | @@ -426,10 +426,10 @@ |
427 | 427 | 'method' => 'post', |
428 | 428 | 'action' => $this->getTitle()->getLocalUrl( 'action=submit' ) ) ) . |
429 | 429 | Xml::element( 'h2', array(), $title ) . |
430 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
431 | | - Xml::hidden( 'wpMergeAction', $action ) . |
432 | | - Xml::hidden( 'wpMergeSessionToken', $this->mSessionToken ) . |
433 | | - Xml::hidden( 'wpMergeSessionKey', bin2hex( $this->mSessionKey ) ) . |
| 430 | + Html::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 431 | + Html::hidden( 'wpMergeAction', $action ) . |
| 432 | + Html::hidden( 'wpMergeSessionToken', $this->mSessionToken ) . |
| 433 | + Html::hidden( 'wpMergeSessionKey', bin2hex( $this->mSessionKey ) ) . |
434 | 434 | |
435 | 435 | $text . |
436 | 436 | |
Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -92,7 +92,6 @@ |
93 | 93 | static function onAbortNewAccount( $user, &$abortError ) { |
94 | 94 | $centralUser = CentralAuthUser::getInstance( $user ); |
95 | 95 | if ( $centralUser->exists() ) { |
96 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
97 | 96 | $abortError = wfMsg( 'centralauth-account-exists' ); |
98 | 97 | return false; |
99 | 98 | } |
— | — | @@ -115,7 +114,6 @@ |
116 | 115 | // On other domains |
117 | 116 | global $wgCentralAuthAutoLoginWikis; |
118 | 117 | if ( !$wgCentralAuthAutoLoginWikis ) { |
119 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
120 | 118 | $inject_html .= wfMsgExt( 'centralauth-login-no-others', 'parsemag' ); |
121 | 119 | return true; |
122 | 120 | } |
— | — | @@ -125,7 +123,6 @@ |
126 | 124 | return true; |
127 | 125 | } |
128 | 126 | |
129 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
130 | 127 | $inject_html .= '<div class="centralauth-login-box"><p>' . |
131 | 128 | wfMsgExt( 'centralauth-login-progress', array( 'parsemag' ), $user->getName() ) . "</p>\n<p>"; |
132 | 129 | foreach ( $wgCentralAuthAutoLoginWikis as $alt => $wiki ) { |
— | — | @@ -266,7 +263,6 @@ |
267 | 264 | // Nothing to do. |
268 | 265 | return true; |
269 | 266 | } elseif ( !$wgCentralAuthAutoLoginWikis ) { |
270 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
271 | 267 | $inject_html .= wfMsgExt( 'centralauth-logout-no-others', 'parse' ); |
272 | 268 | return true; |
273 | 269 | } |
— | — | @@ -276,13 +272,11 @@ |
277 | 273 | if ( !$centralUser->exists() || !$centralUser->isAttached() ) { |
278 | 274 | return true; |
279 | 275 | } elseif ( !$wgCentralAuthAutoLoginWikis ) { |
280 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
281 | 276 | $inject_html .= wfMsgExt( 'centralauth-logout-no-others', 'parse' ); |
282 | 277 | return true; |
283 | 278 | } |
284 | 279 | |
285 | 280 | // Generate the images |
286 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
287 | 281 | $inject_html .= '<div class="centralauth-logout-box"><p>' . |
288 | 282 | wfMsg( 'centralauth-logout-progress' ) . "</p>\n<p>"; |
289 | 283 | $centralUser = new CentralAuthUser( $userName ); |
— | — | @@ -342,12 +336,10 @@ |
343 | 337 | static function onRenameUserWarning( $oldName, $newName, &$warnings ) { |
344 | 338 | $oldCentral = new CentralAuthUser( $oldName ); |
345 | 339 | if ( $oldCentral->exists() && $oldCentral->isAttached() ) { |
346 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
347 | 340 | $warnings[] = array( 'centralauth-renameuser-merged', $oldName, $newName ); |
348 | 341 | } |
349 | 342 | $newCentral = new CentralAuthUser( $newName ); |
350 | 343 | if ( $newCentral->exists() && !$newCentral->isAttached() ) { |
351 | | - wfLoadExtensionMessages( 'SpecialCentralAuth' ); |
352 | 344 | $warnings[] = array( 'centralauth-renameuser-reserved', $oldName, $newName ); |
353 | 345 | } |
354 | 346 | return true; |
Index: trunk/extensions/AbuseFilter/Views/AbuseFilterViewEdit.php |
— | — | @@ -435,7 +435,7 @@ |
436 | 436 | |
437 | 437 | if ( $this->canEdit() ) { |
438 | 438 | $form .= Xml::submitButton( wfMsg( 'abusefilter-edit-save' ), array( 'accesskey' => 's' ) ); |
439 | | - $form .= Xml::hidden( |
| 439 | + $form .= Html::hidden( |
440 | 440 | 'wpEditToken', |
441 | 441 | $wgUser->editToken( array( 'abusefilter', $filter ) ) |
442 | 442 | ); |
Index: trunk/extensions/AbuseFilter/AbuseFilter.class.php |
— | — | @@ -197,8 +197,6 @@ |
198 | 198 | } |
199 | 199 | |
200 | 200 | public static function ajaxCheckSyntax( $filter ) { |
201 | | - wfLoadExtensionMessages( 'AbuseFilter' ); |
202 | | - |
203 | 201 | global $wgUser; |
204 | 202 | if ( !$wgUser->isAllowed( 'abusefilter-modify' ) ) { |
205 | 203 | return false; |
— | — | @@ -323,7 +321,6 @@ |
324 | 322 | } |
325 | 323 | |
326 | 324 | public static function evaluateExpression( $expr, $vars = array() ) { |
327 | | - wfLoadExtensionMessages( 'AbuseFilter' ); |
328 | 325 | global $wgAbuseFilterParserClass; |
329 | 326 | |
330 | 327 | if ( self::checkSyntax( $expr ) !== true ) { |
— | — | @@ -339,7 +336,6 @@ |
340 | 337 | |
341 | 338 | public static function ajaxReAutoconfirm( $username ) { |
342 | 339 | global $wgUser; |
343 | | - wfLoadExtensionMessages( 'AbuseFilter' ); |
344 | 340 | |
345 | 341 | if ( !$wgUser->isAllowed( 'abusefilter-modify' ) ) { |
346 | 342 | // Don't allow it. |
— | — | @@ -631,8 +627,6 @@ |
632 | 628 | $actionsByFilter = self::getConsequencesForFilters( $filters ); |
633 | 629 | $actionsTaken = array_fill_keys( $filters, array() ); |
634 | 630 | |
635 | | - wfLoadExtensionMessages( 'AbuseFilter' ); |
636 | | - |
637 | 631 | $messages = array(); |
638 | 632 | |
639 | 633 | foreach ( $actionsByFilter as $filter => $actions ) { |
Index: trunk/extensions/AbuseFilter/AbuseFilter.hooks.php |
— | — | @@ -100,7 +100,6 @@ |
101 | 101 | } |
102 | 102 | |
103 | 103 | public static function onAbortNewAccount( $user, &$message ) { |
104 | | - wfLoadExtensionMessages( 'AbuseFilter' ); |
105 | 104 | if ( $user->getName() == wfMsgForContent( 'abusefilter-blocker' ) ) { |
106 | 105 | $message = wfMsg( 'abusefilter-accountreserved' ); |
107 | 106 | return false; |
— | — | @@ -221,7 +220,6 @@ |
222 | 221 | |
223 | 222 | public static function onContributionsToolLinks( $id, $nt, &$tools ) { |
224 | 223 | global $wgUser; |
225 | | - wfLoadExtensionMessages( 'AbuseFilter' ); |
226 | 224 | if ( $wgUser->isAllowed( 'abusefilter-log' ) ) { |
227 | 225 | $sk = $wgUser->getSkin(); |
228 | 226 | $tools[] = $sk->link( |
Index: trunk/extensions/ReaderFeedback/ReaderFeedback.hooks.php |
— | — | @@ -115,7 +115,6 @@ |
116 | 116 | # Revision being displayed |
117 | 117 | $id = $wgOut->getRevisionId(); |
118 | 118 | # Load required messages |
119 | | - wfLoadExtensionMessages( 'ReaderFeedback' ); |
120 | 119 | $reviewTitle = SpecialPage::getTitleFor( 'ReaderFeedback' ); |
121 | 120 | $action = $reviewTitle->getLocalUrl( 'action=submit' ); |
122 | 121 | $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $action, |
— | — | @@ -149,12 +148,12 @@ |
150 | 149 | 'title' => wfMsg('readerfeedback-tt-review').' ['.wfMsg('readerfeedback-ak-review').']' ) |
151 | 150 | ); |
152 | 151 | # Hidden params |
153 | | - $form .= Xml::hidden( 'title', $reviewTitle->getPrefixedText() ) . "\n"; |
154 | | - $form .= Xml::hidden( 'target', $title->getPrefixedDBKey() ) . "\n"; |
155 | | - $form .= Xml::hidden( 'oldid', $id ) . "\n"; |
156 | | - $form .= Xml::hidden( 'validatedParams', ReaderFeedbackPage::validationKey( $id, $wgUser->getId() ) ); |
157 | | - $form .= Xml::hidden( 'action', 'submit') . "\n"; |
158 | | - $form .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . "\n"; |
| 152 | + $form .= Html::hidden( 'title', $reviewTitle->getPrefixedText() ) . "\n"; |
| 153 | + $form .= Html::hidden( 'target', $title->getPrefixedDBKey() ) . "\n"; |
| 154 | + $form .= Html::hidden( 'oldid', $id ) . "\n"; |
| 155 | + $form .= Html::hidden( 'validatedParams', ReaderFeedbackPage::validationKey( $id, $wgUser->getId() ) ); |
| 156 | + $form .= Html::hidden( 'action', 'submit') . "\n"; |
| 157 | + $form .= Html::hidden( 'wpEditToken', $wgUser->editToken() ) . "\n"; |
159 | 158 | # Honeypot input |
160 | 159 | $form .= Xml::input( 'commentary', 12, '', array('style' => 'display:none;') ) . "\n"; |
161 | 160 | $form .= Xml::closeElement( 'fieldset' ); |
— | — | @@ -171,7 +170,6 @@ |
172 | 171 | global $wgTitle; |
173 | 172 | # Add rating tab |
174 | 173 | if( isset($wgTitle) && ReaderFeedback::isPageRateable($wgTitle) ) { |
175 | | - wfLoadExtensionMessages( 'RatingHistory' ); |
176 | 174 | $nav_urls['ratinghist'] = array( |
177 | 175 | 'text' => wfMsg( 'ratinghistory-link' ), |
178 | 176 | 'href' => $skintemplate->makeSpecialUrl( 'RatingHistory', |
Index: trunk/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php |
— | — | @@ -169,8 +169,7 @@ |
170 | 170 | $rhist = SpecialPage::getTitleFor( 'RatingHistory' ); |
171 | 171 | $graphLink = $rhist->getFullUrl( 'target='.$form->page->getPrefixedUrl() ); |
172 | 172 | $talk = $form->page->getTalkPage(); |
173 | | - |
174 | | - wfLoadExtensionMessages( 'RatingHistory' ); |
| 173 | + |
175 | 174 | $tallyTable = ReaderFeedback::getVoteAggregates( $form->page, 31, $form->dims ); |
176 | 175 | |
177 | 176 | $dbw = wfGetDB( DB_MASTER ); |
Index: trunk/extensions/CrossNamespaceLinks/CrossNamespaceLinks_body.php |
— | — | @@ -111,7 +111,6 @@ |
112 | 112 | |
113 | 113 | $plink = $skin->makeKnownLink( $nt->getPrefixedText(), htmlspecialchars( $text ) ); |
114 | 114 | |
115 | | - wfLoadExtensionMessages( 'CrossNamespaceLinks' ); |
116 | 115 | return wfMsgExt( 'crossnamespacelinkstext', array( 'parsemag' ), $plink, $wgLang->formatNum( $result->namespace ), htmlspecialchars( $wgLang->getNsText( $result->value ) ) ); |
117 | 116 | } |
118 | 117 | } |
Index: trunk/extensions/SecurePoll/includes/pages/VotePage.php |
— | — | @@ -241,8 +241,8 @@ |
242 | 242 | $wgOut->addWikiText( $this->election->getMessage( 'jump-text' ) ); |
243 | 243 | $wgOut->addHTML( |
244 | 244 | Xml::openElement( 'form', array( 'action' => $url, 'method' => 'post' ) ) . |
245 | | - Xml::hidden( 'token', SecurePoll_RemoteMWAuth::encodeToken( $wgUser->getToken() ) ) . |
246 | | - Xml::hidden( 'id', $wgUser->getId() ) . |
| 245 | + Html::hidden( 'token', SecurePoll_RemoteMWAuth::encodeToken( $wgUser->getToken() ) ) . |
| 246 | + Html::hidden( 'id', $wgUser->getId() ) . |
247 | 247 | Xml::submitButton( wfMsg( 'securepoll-jump' ) ) . |
248 | 248 | '</form>' |
249 | 249 | ); |
Index: trunk/extensions/CheckUser/CheckUser.php |
— | — | @@ -188,7 +188,6 @@ |
189 | 189 | if ( !$wgSecretKey || $from->name == $to->name ) { |
190 | 190 | return true; |
191 | 191 | } |
192 | | - wfLoadExtensionMessages( 'CheckUser' ); |
193 | 192 | $userFrom = User::newFromName( $from->name ); |
194 | 193 | $userTo = User::newFromName( $to->name ); |
195 | 194 | $hash = md5( $userTo->getEmail() . $userTo->getId() . $wgSecretKey ); |
— | — | @@ -232,7 +231,6 @@ |
233 | 232 | * Saves user data into the cu_changes table |
234 | 233 | */ |
235 | 234 | function efUpdateAutoCreateData( $user ) { |
236 | | - wfLoadExtensionMessages( 'CheckUser' ); |
237 | 235 | // Get IP |
238 | 236 | $ip = wfGetIP(); |
239 | 237 | // Get XFF header |
— | — | @@ -415,7 +413,6 @@ |
416 | 414 | function efLoadCheckUserLink( $id, $nt, &$links ) { |
417 | 415 | global $wgUser; |
418 | 416 | if ( $wgUser->isAllowed( 'checkuser' ) ) { |
419 | | - wfLoadExtensionMessages( 'CheckUser' ); |
420 | 417 | $links[] = $wgUser->getSkin()->makeKnownLinkObj( |
421 | 418 | SpecialPage::getTitleFor( 'CheckUser' ), |
422 | 419 | wfMsgHtml( 'checkuser-contribs' ), |
Index: trunk/extensions/InputBox/InputBox.classes.php |
— | — | @@ -181,7 +181,7 @@ |
182 | 182 | |
183 | 183 | // Hidden fulltext param for IE (bug 17161) |
184 | 184 | if( $type == 'fulltext' ) { |
185 | | - $htmlOut .= Xml::hidden( 'fulltext', 'Search' ); |
| 185 | + $htmlOut .= Html::hidden( 'fulltext', 'Search' ); |
186 | 186 | } |
187 | 187 | |
188 | 188 | $htmlOut .= Xml::closeElement( 'form' ); |