Index: trunk/phase3/includes/Preferences.php |
— | — | @@ -529,7 +529,7 @@ |
530 | 530 | $nowlocal = Xml::element( 'span', array( 'id' => 'wpLocalTime' ), |
531 | 531 | $wgLang->time( $now = wfTimestampNow(), true ) ); |
532 | 532 | $nowserver = $wgLang->time( $now, false ) . |
533 | | - Xml::hidden( 'wpServerTime', substr( $now, 8, 2 ) * 60 + substr( $now, 10, 2 ) ); |
| 533 | + Html::hidden( 'wpServerTime', substr( $now, 8, 2 ) * 60 + substr( $now, 10, 2 ) ); |
534 | 534 | |
535 | 535 | $defaultPreferences['nowserver'] = array( |
536 | 536 | 'type' => 'info', |
Index: trunk/phase3/includes/WatchlistEditor.php |
— | — | @@ -351,7 +351,7 @@ |
352 | 352 | $self = SpecialPage::getTitleFor( 'Watchlist' ); |
353 | 353 | $form = Xml::openElement( 'form', array( 'method' => 'post', |
354 | 354 | 'action' => $self->getLocalUrl( array( 'action' => 'edit' ) ) ) ); |
355 | | - $form .= Xml::hidden( 'token', $wgUser->editToken( 'watchlistedit' ) ); |
| 355 | + $form .= Html::hidden( 'token', $wgUser->editToken( 'watchlistedit' ) ); |
356 | 356 | $form .= "<fieldset>\n<legend>" . wfMsgHtml( 'watchlistedit-normal-legend' ) . "</legend>"; |
357 | 357 | $form .= wfMsgExt( 'watchlistedit-normal-explain', 'parse' ); |
358 | 358 | $form .= $this->buildRemoveList( $user, $wgUser->getSkin() ); |
— | — | @@ -460,9 +460,9 @@ |
461 | 461 | global $wgUser; |
462 | 462 | $this->showItemCount( $output, $user ); |
463 | 463 | $self = SpecialPage::getTitleFor( 'Watchlist' ); |
464 | | - $form = Xml::openElement( 'form', array( 'method' => 'post', |
| 464 | + $form = Xml::openElement( 'form', array( 'method' => 'post', |
465 | 465 | 'action' => $self->getLocalUrl( array( 'action' => 'raw' ) ) ) ); |
466 | | - $form .= Xml::hidden( 'token', $wgUser->editToken( 'watchlistedit' ) ); |
| 466 | + $form .= Html::hidden( 'token', $wgUser->editToken( 'watchlistedit' ) ); |
467 | 467 | $form .= '<fieldset><legend>' . wfMsgHtml( 'watchlistedit-raw-legend' ) . '</legend>'; |
468 | 468 | $form .= wfMsgExt( 'watchlistedit-raw-explain', 'parse' ); |
469 | 469 | $form .= Xml::label( wfMsg( 'watchlistedit-raw-titles' ), 'titles' ); |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -2056,7 +2056,6 @@ |
2057 | 2057 | * @return none |
2058 | 2058 | */ |
2059 | 2059 | public function addPasswordSecurity( $passwordId, $retypeId ) { |
2060 | | - $this->includeJQuery(); |
2061 | 2060 | $data = array( |
2062 | 2061 | 'password' => '#' . $passwordId, |
2063 | 2062 | 'retype' => '#' . $retypeId, |
Index: trunk/phase3/includes/specials/SpecialWatchlist.php |
— | — | @@ -241,7 +241,7 @@ |
242 | 242 | 'id' => 'mw-watchlist-resetbutton' ) ) . |
243 | 243 | wfMsgExt( 'wlheader-showupdated', array( 'parseinline' ) ) . ' ' . |
244 | 244 | Xml::submitButton( wfMsg( 'enotif_reset' ), array( 'name' => 'dummy' ) ) . |
245 | | - Xml::hidden( 'reset', 'all' ) . |
| 245 | + Html::hidden( 'reset', 'all' ) . |
246 | 246 | Xml::closeElement( 'form' ); |
247 | 247 | } |
248 | 248 | $form .= '<hr />'; |
— | — | @@ -316,17 +316,17 @@ |
317 | 317 | $form .= Xml::namespaceSelector( $nameSpace, '' ) . ' '; |
318 | 318 | $form .= Xml::checkLabel( wfMsg('invert'), 'invert', 'nsinvert', $invert ) . ' '; |
319 | 319 | $form .= Xml::submitButton( wfMsg( 'allpagessubmit' ) ) . '</p>'; |
320 | | - $form .= Xml::hidden( 'days', $days ); |
| 320 | + $form .= Html::hidden( 'days', $days ); |
321 | 321 | if( $hideMinor ) |
322 | | - $form .= Xml::hidden( 'hideMinor', 1 ); |
| 322 | + $form .= Html::hidden( 'hideMinor', 1 ); |
323 | 323 | if( $hideBots ) |
324 | | - $form .= Xml::hidden( 'hideBots', 1 ); |
| 324 | + $form .= Html::hidden( 'hideBots', 1 ); |
325 | 325 | if( $hideAnons ) |
326 | | - $form .= Xml::hidden( 'hideAnons', 1 ); |
| 326 | + $form .= Html::hidden( 'hideAnons', 1 ); |
327 | 327 | if( $hideLiu ) |
328 | | - $form .= Xml::hidden( 'hideLiu', 1 ); |
| 328 | + $form .= Html::hidden( 'hideLiu', 1 ); |
329 | 329 | if( $hideOwn ) |
330 | | - $form .= Xml::hidden( 'hideOwn', 1 ); |
| 330 | + $form .= Html::hidden( 'hideOwn', 1 ); |
331 | 331 | $form .= Xml::closeElement( 'form' ); |
332 | 332 | $form .= Xml::closeElement( 'fieldset' ); |
333 | 333 | $wgOut->addHTML( $form ); |
Index: trunk/phase3/includes/specials/SpecialRevisiondelete.php |
— | — | @@ -414,10 +414,10 @@ |
415 | 415 | '</td>' . |
416 | 416 | "</tr>\n" . |
417 | 417 | Xml::closeElement( 'table' ) . |
418 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
419 | | - Xml::hidden( 'target', $this->targetObj->getPrefixedText() ) . |
420 | | - Xml::hidden( 'type', $this->typeName ) . |
421 | | - Xml::hidden( 'ids', implode( ',', $this->ids ) ) . |
| 418 | + Html::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 419 | + Html::hidden( 'target', $this->targetObj->getPrefixedText() ) . |
| 420 | + Html::hidden( 'type', $this->typeName ) . |
| 421 | + Html::hidden( 'ids', implode( ',', $this->ids ) ) . |
422 | 422 | Xml::closeElement( 'fieldset' ) . "\n"; |
423 | 423 | } else { |
424 | 424 | $out = ''; |
Index: trunk/phase3/includes/specials/SpecialDeletedContributions.php |
— | — | @@ -494,7 +494,7 @@ |
495 | 495 | if ( in_array( $name, array( 'namespace', 'target', 'contribs' ) ) ) { |
496 | 496 | continue; |
497 | 497 | } |
498 | | - $f .= "\t" . Xml::hidden( $name, $value ) . "\n"; |
| 498 | + $f .= "\t" . Html::hidden( $name, $value ) . "\n"; |
499 | 499 | } |
500 | 500 | |
501 | 501 | $f .= Xml::openElement( 'fieldset' ) . |
Index: trunk/phase3/includes/specials/SpecialMovepage.php |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | "</td> |
225 | 225 | <td class='mw-input'>" . |
226 | 226 | Xml::input( 'wpNewTitle', 40, $wgContLang->recodeForEdit( $newTitle->getPrefixedText() ), array( 'type' => 'text', 'id' => 'wpNewTitle' ) ) . |
227 | | - Xml::hidden( 'wpOldTitle', $this->oldTitle->getPrefixedText() ) . |
| 227 | + Html::hidden( 'wpOldTitle', $this->oldTitle->getPrefixedText() ) . |
228 | 228 | "</td> |
229 | 229 | </tr> |
230 | 230 | <tr> |
— | — | @@ -326,7 +326,7 @@ |
327 | 327 | "</td> |
328 | 328 | </tr>" . |
329 | 329 | Xml::closeElement( 'table' ) . |
330 | | - Xml::hidden( 'wpEditToken', $token ) . |
| 330 | + Html::hidden( 'wpEditToken', $token ) . |
331 | 331 | Xml::closeElement( 'fieldset' ) . |
332 | 332 | Xml::closeElement( 'form' ) . |
333 | 333 | "\n" |
Index: trunk/phase3/includes/specials/SpecialSearch.php |
— | — | @@ -821,9 +821,9 @@ |
822 | 822 | $namespaceTables . |
823 | 823 | Xml::element( 'div', array( 'class' => 'divider' ), '', false ) . |
824 | 824 | $redirects . |
825 | | - Xml::hidden( 'title', SpecialPage::getTitleFor( 'Search' )->getPrefixedText() ) . |
826 | | - Xml::hidden( 'advanced', $this->searchAdvanced ) . |
827 | | - Xml::hidden( 'fulltext', 'Advanced search' ) . |
| 825 | + Html::hidden( 'title', SpecialPage::getTitleFor( 'Search' )->getPrefixedText() ) . |
| 826 | + Html::hidden( 'advanced', $this->searchAdvanced ) . |
| 827 | + Html::hidden( 'fulltext', 'Advanced search' ) . |
828 | 828 | Xml::closeElement( 'fieldset' ); |
829 | 829 | } |
830 | 830 | |
Index: trunk/phase3/includes/specials/SpecialWhatlinkshere.php |
— | — | @@ -384,9 +384,9 @@ |
385 | 385 | $f = Xml::openElement( 'form', array( 'action' => $wgScript ) ); |
386 | 386 | |
387 | 387 | # Values that should not be forgotten |
388 | | - $f .= Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
| 388 | + $f .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ); |
389 | 389 | foreach ( $this->opts->getUnconsumedValues() as $name => $value ) { |
390 | | - $f .= Xml::hidden( $name, $value ); |
| 390 | + $f .= Html::hidden( $name, $value ); |
391 | 391 | } |
392 | 392 | |
393 | 393 | $f .= Xml::fieldset( wfMsg( 'whatlinkshere' ) ); |
Index: trunk/phase3/includes/specials/SpecialRecentchanges.php |
— | — | @@ -493,11 +493,11 @@ |
494 | 494 | |
495 | 495 | $unconsumed = $opts->getUnconsumedValues(); |
496 | 496 | foreach( $unconsumed as $key => $value ) { |
497 | | - $out .= Xml::hidden( $key, $value ); |
| 497 | + $out .= Html::hidden( $key, $value ); |
498 | 498 | } |
499 | 499 | |
500 | 500 | $t = $this->getTitle(); |
501 | | - $out .= Xml::hidden( 'title', $t->getPrefixedText() ); |
| 501 | + $out .= Html::hidden( 'title', $t->getPrefixedText() ); |
502 | 502 | $form = Xml::tags( 'form', array( 'action' => $wgScript ), $out ); |
503 | 503 | $panel[] = $form; |
504 | 504 | $panelString = implode( "\n", $panel ); |
Index: trunk/phase3/includes/specials/SpecialMergeHistory.php |
— | — | @@ -225,11 +225,11 @@ |
226 | 226 | |
227 | 227 | # When we submit, go by page ID to avoid some nasty but unlikely collisions. |
228 | 228 | # Such would happen if a page was renamed after the form loaded, but before submit |
229 | | - $misc = Xml::hidden( 'targetID', $this->mTargetObj->getArticleID() ); |
230 | | - $misc .= Xml::hidden( 'destID', $this->mDestObj->getArticleID() ); |
231 | | - $misc .= Xml::hidden( 'target', $this->mTarget ); |
232 | | - $misc .= Xml::hidden( 'dest', $this->mDest ); |
233 | | - $misc .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 229 | + $misc = Html::hidden( 'targetID', $this->mTargetObj->getArticleID() ); |
| 230 | + $misc .= Html::hidden( 'destID', $this->mDestObj->getArticleID() ); |
| 231 | + $misc .= Html::hidden( 'target', $this->mTarget ); |
| 232 | + $misc .= Html::hidden( 'dest', $this->mDest ); |
| 233 | + $misc .= Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
234 | 234 | $misc .= Xml::closeElement( 'form' ); |
235 | 235 | $wgOut->addHTML( $misc ); |
236 | 236 | |
Index: trunk/phase3/includes/specials/SpecialUserrights.php |
— | — | @@ -375,7 +375,7 @@ |
376 | 376 | global $wgOut, $wgScript; |
377 | 377 | $wgOut->addHTML( |
378 | 378 | Xml::openElement( 'form', array( 'method' => 'get', 'action' => $wgScript, 'name' => 'uluser', 'id' => 'mw-userrights-form1' ) ) . |
379 | | - Xml::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
| 379 | + Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
380 | 380 | Xml::openElement( 'fieldset' ) . |
381 | 381 | Xml::element( 'legend', array(), wfMsg( 'userrights-lookup-user' ) ) . |
382 | 382 | Xml::inputLabel( wfMsg( 'userrights-user-editname' ), 'user', 'username', 30, $this->mTarget ) . ' ' . |
— | — | @@ -440,8 +440,8 @@ |
441 | 441 | } |
442 | 442 | $wgOut->addHTML( |
443 | 443 | Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->getLocalURL(), 'name' => 'editGroup', 'id' => 'mw-userrights-form2' ) ) . |
444 | | - Xml::hidden( 'user', $this->mTarget ) . |
445 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken( $this->mTarget ) ) . |
| 444 | + Html::hidden( 'user', $this->mTarget ) . |
| 445 | + Html::hidden( 'wpEditToken', $wgUser->editToken( $this->mTarget ) ) . |
446 | 446 | Xml::openElement( 'fieldset' ) . |
447 | 447 | Xml::element( 'legend', array(), wfMsg( 'userrights-editusergroup' ) ) . |
448 | 448 | wfMsgExt( 'editinguser', array( 'parse' ), wfEscapeWikiText( $user->getName() ) ) . |
Index: trunk/phase3/includes/specials/SpecialContributions.php |
— | — | @@ -339,7 +339,7 @@ |
340 | 340 | if( in_array( $name, $skipParameters ) ) { |
341 | 341 | continue; |
342 | 342 | } |
343 | | - $f .= "\t" . Xml::hidden( $name, $value ) . "\n"; |
| 343 | + $f .= "\t" . Html::hidden( $name, $value ) . "\n"; |
344 | 344 | } |
345 | 345 | |
346 | 346 | $tagFilter = ChangeTags::buildTagFilterSelector( $this->opts['tagFilter'] ); |
Index: trunk/phase3/includes/specials/SpecialUndelete.php |
— | — | @@ -714,7 +714,7 @@ |
715 | 715 | 'method' => 'get', |
716 | 716 | 'action' => $wgScript ) ) . |
717 | 717 | Xml::fieldset( wfMsg( 'undelete-search-box' ) ) . |
718 | | - Xml::hidden( 'title', |
| 718 | + Html::hidden( 'title', |
719 | 719 | $this->getTitle()->getPrefixedDbKey() ) . |
720 | 720 | Xml::inputLabel( wfMsg( 'undelete-search-prefix' ), |
721 | 721 | 'prefix', 'prefix', 20, |
— | — | @@ -1168,8 +1168,8 @@ |
1169 | 1169 | |
1170 | 1170 | if ( $this->mAllowed ) { |
1171 | 1171 | # Slip in the hidden controls here |
1172 | | - $misc = Xml::hidden( 'target', $this->mTarget ); |
1173 | | - $misc .= Xml::hidden( 'wpEditToken', $wgUser->editToken() ); |
| 1172 | + $misc = Html::hidden( 'target', $this->mTarget ); |
| 1173 | + $misc .= Html::hidden( 'wpEditToken', $wgUser->editToken() ); |
1174 | 1174 | $misc .= Xml::closeElement( 'form' ); |
1175 | 1175 | $wgOut->addHTML( $misc ); |
1176 | 1176 | } |
Index: trunk/phase3/includes/specials/SpecialNewpages.php |
— | — | @@ -205,7 +205,7 @@ |
206 | 206 | list( $tagFilterLabel, $tagFilterSelector ) = $tagFilter; |
207 | 207 | |
208 | 208 | $form = Xml::openElement( 'form', array( 'action' => $wgScript ) ) . |
209 | | - Xml::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ) . |
| 209 | + Html::hidden( 'title', $this->getTitle()->getPrefixedDBkey() ) . |
210 | 210 | Xml::fieldset( wfMsg( 'newpages' ) ) . |
211 | 211 | Xml::openElement( 'table', array( 'id' => 'mw-newpages-table' ) ) . |
212 | 212 | "<tr> |
Index: trunk/phase3/includes/specials/SpecialImport.php |
— | — | @@ -206,9 +206,9 @@ |
207 | 207 | Xml::fieldset( wfMsg( 'importinterwiki' ) ) . |
208 | 208 | Xml::openElement( 'form', array( 'method' => 'post', 'action' => $action, 'id' => 'mw-import-interwiki-form' ) ) . |
209 | 209 | wfMsgExt( 'import-interwiki-text', array( 'parse' ) ) . |
210 | | - Xml::hidden( 'action', 'submit' ) . |
211 | | - Xml::hidden( 'source', 'interwiki' ) . |
212 | | - Xml::hidden( 'editToken', $wgUser->editToken() ) . |
| 210 | + Html::hidden( 'action', 'submit' ) . |
| 211 | + Html::hidden( 'source', 'interwiki' ) . |
| 212 | + Html::hidden( 'editToken', $wgUser->editToken() ) . |
213 | 213 | Xml::openElement( 'table', array( 'id' => 'mw-import-table' ) ) . |
214 | 214 | "<tr> |
215 | 215 | <td class='mw-label'>" . |
Index: trunk/phase3/includes/specials/SpecialBlockip.php |
— | — | @@ -359,8 +359,8 @@ |
360 | 360 | </td> |
361 | 361 | </tr>" . |
362 | 362 | Xml::closeElement( 'table' ) . |
363 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
364 | | - ( $alreadyBlocked ? Xml::hidden( 'wpChangeBlock', 1 ) : "" ) . |
| 363 | + Html::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 364 | + ( $alreadyBlocked ? Html::hidden( 'wpChangeBlock', 1 ) : "" ) . |
365 | 365 | Xml::closeElement( 'fieldset' ) . |
366 | 366 | Xml::closeElement( 'form' ) . |
367 | 367 | Xml::tags( 'script', array( 'type' => 'text/javascript' ), 'updateBlockOptions()' ) . "\n" |
Index: trunk/phase3/includes/installer/WebInstallerPage.php |
— | — | @@ -214,8 +214,7 @@ |
215 | 215 | $contLang = $this->getVar( 'wgLanguageCode', 'en' ); |
216 | 216 | } |
217 | 217 | $this->startForm(); |
218 | | - $s = |
219 | | - Xml::hidden( 'LanguageRequestTime', time() ) . |
| 218 | + $s = Html::hidden( 'LanguageRequestTime', time() ) . |
220 | 219 | $this->getLanguageSelector( 'UserLang', 'config-your-language', $userLang ) . |
221 | 220 | $this->parent->getHelpBox( 'config-your-language-help' ) . |
222 | 221 | $this->getLanguageSelector( 'ContLang', 'config-wiki-language', $contLang ) . |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1274,11 +1274,11 @@ |
1275 | 1275 | # automatic one and pass that in the hidden field wpAutoSummary. |
1276 | 1276 | if ( $this->missingSummary || |
1277 | 1277 | ( $this->section == 'new' && $this->nosummary ) ) |
1278 | | - $wgOut->addHTML( Xml::hidden( 'wpIgnoreBlankSummary', true ) ); |
| 1278 | + $wgOut->addHTML( Html::hidden( 'wpIgnoreBlankSummary', true ) ); |
1279 | 1279 | $autosumm = $this->autoSumm ? $this->autoSumm : md5( $this->summary ); |
1280 | | - $wgOut->addHTML( Xml::hidden( 'wpAutoSummary', $autosumm ) ); |
| 1280 | + $wgOut->addHTML( Html::hidden( 'wpAutoSummary', $autosumm ) ); |
1281 | 1281 | |
1282 | | - $wgOut->addHTML( Xml::hidden( 'oldid', $this->mArticle->getOldID() ) ); |
| 1282 | + $wgOut->addHTML( Html::hidden( 'oldid', $this->mArticle->getOldID() ) ); |
1283 | 1283 | |
1284 | 1284 | if ( $this->section == 'new' ) { |
1285 | 1285 | $this->showSummaryInput( true, $this->summary ); |
— | — | @@ -1567,7 +1567,7 @@ |
1568 | 1568 | HTML |
1569 | 1569 | ); |
1570 | 1570 | if ( !$this->checkUnicodeCompliantBrowser() ) |
1571 | | - $wgOut->addHTML(Xml::hidden( 'safemode', '1' )); |
| 1571 | + $wgOut->addHTML(Html::hidden( 'safemode', '1' )); |
1572 | 1572 | } |
1573 | 1573 | |
1574 | 1574 | protected function showFormAfterText() { |
— | — | @@ -1584,7 +1584,7 @@ |
1585 | 1585 | * include the constant suffix to prevent editing from |
1586 | 1586 | * broken text-mangling proxies. |
1587 | 1587 | */ |
1588 | | - $wgOut->addHTML( "\n" . Xml::hidden( "wpEditToken", $wgUser->editToken() ) . "\n" ); |
| 1588 | + $wgOut->addHTML( "\n" . Html::hidden( "wpEditToken", $wgUser->editToken() ) . "\n" ); |
1589 | 1589 | } |
1590 | 1590 | |
1591 | 1591 | /** |
Index: trunk/phase3/includes/ImagePage.php |
— | — | @@ -442,7 +442,7 @@ |
443 | 443 | $wgOut->addHTML( |
444 | 444 | '</td><td><div class="multipageimagenavbox">' . |
445 | 445 | Xml::openElement( 'form', $formParams ) . |
446 | | - Xml::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) . |
| 446 | + Html::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ) . |
447 | 447 | wfMsgExt( 'imgmultigoto', array( 'parseinline', 'replaceafter' ), $select ) . |
448 | 448 | Xml::submitButton( wfMsg( 'imgmultigo' ) ) . |
449 | 449 | Xml::closeElement( 'form' ) . |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -3081,7 +3081,7 @@ |
3082 | 3082 | </tr>" . |
3083 | 3083 | Xml::closeElement( 'table' ) . |
3084 | 3084 | Xml::closeElement( 'fieldset' ) . |
3085 | | - Xml::hidden( 'wpEditToken', $wgUser->editToken() ) . |
| 3085 | + Html::hidden( 'wpEditToken', $wgUser->editToken() ) . |
3086 | 3086 | Xml::closeElement( 'form' ); |
3087 | 3087 | |
3088 | 3088 | if ( $wgUser->isAllowed( 'editinterface' ) ) { |