| Index: trunk/extensions/Oversight/HideRevision_body.php |
| — | — | @@ -68,11 +68,11 @@ |
| 69 | 69 | 'method' => 'post' ) ) . |
| 70 | 70 | |
| 71 | 71 | // Visible fields |
| 72 | | - Xml::inputLabel( wfMsgHTML( 'hiderevision-prompt' ), 'revision[]', 'wpRevision', 10 ) . |
| | 72 | + Xml::inputLabel( wfMsg( 'hiderevision-prompt' ), 'revision[]', 'wpRevision', 10 ) . |
| 73 | 73 | "<br />" . |
| 74 | | - Xml::inputLabel( wfMsgHTML( 'hiderevision-reason' ), 'wpReason', 'wpReason', 60 ) . |
| | 74 | + Xml::inputLabel( wfMsg( 'hiderevision-reason' ), 'wpReason', 'wpReason', 60 ) . |
| 75 | 75 | "<br />" . |
| 76 | | - Xml::submitButton( wfMsgHTML( 'hiderevision-continue' ), array( 'id' => 'mw-hiderevision-continue' ) ) . |
| | 76 | + Xml::submitButton( wfMsg( 'hiderevision-continue' ), array( 'id' => 'mw-hiderevision-continue' ) ) . |
| 77 | 77 | |
| 78 | 78 | Xml::closeElement( 'form' ) ); |
| 79 | 79 | } |
| — | — | @@ -97,9 +97,9 @@ |
| 98 | 98 | |
| 99 | 99 | // Visible fields |
| 100 | 100 | "<br />" . |
| 101 | | - Xml::inputLabel( wfMsgHTML( 'hiderevision-reason' ), 'wpReason', 'wpReason', 60, $this->mReason ) . |
| | 101 | + Xml::inputLabel( wfMsg( 'hiderevision-reason' ), 'wpReason', 'wpReason', 60, $this->mReason ) . |
| 102 | 102 | "<br />" . |
| 103 | | - Xml::submitButton( wfMsgHTML( 'hiderevision-submit' ), array( 'id' => 'mw-hiderevision-submit' ) ) . |
| | 103 | + Xml::submitButton( wfMsg( 'hiderevision-submit' ), array( 'id' => 'mw-hiderevision-submit' ) ) . |
| 104 | 104 | |
| 105 | 105 | // Hidden fields |
| 106 | 106 | $this->revisionFields() . |
| — | — | @@ -391,19 +391,19 @@ |
| 392 | 392 | $title = Title::newFromUrl( $page ); |
| 393 | 393 | $u = User::newFromName( $user ); |
| 394 | 394 | $page = $title ? $page : ''; // blank invalid titles |
| 395 | | - |
| 396 | | - $action = htmlspecialchars( $wgScript ); |
| 397 | | - $wgOut->addHTML( "<form action=\"$action\" method=\"get\"><fieldset>" ); |
| 398 | | - $wgOut->addHTML( '<legend>' . wfMsgHtml('oversight-legend') . '</legend>' ); |
| 399 | | - $wgOut->addHTML( Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ) ); |
| 400 | | - $wgOut->addHTML( Xml::inputLabel( wfMsg( 'oversight-oversighter' ), 'user', 'mw-oversight-user', 20, $user ) ); |
| 401 | | - $wgOut->addHTML( ' ' ); |
| 402 | | - $wgOut->addHTML( Xml::inputLabel( wfMsg( 'speciallogtitlelabel' ), 'page', 'mw-oversight-page', 25, $page ) ); |
| 403 | | - $wgOut->addHTML( ' ' ); |
| 404 | | - $wgOut->addHTML( Xml::inputLabel( wfMsg( 'oversight-offender' ), 'author', 'mw-oversight-author', 20, $offender ) ); |
| 405 | | - $wgOut->addHTML( ' ' . Xml::submitButton( wfMsg( 'allpagessubmit' ), array( 'id' => 'mw-oversight-submit' ) ) ); |
| 406 | | - $wgOut->addHTML( '</fieldset></form>' ); |
| 407 | | - |
| | 395 | + |
| | 396 | + $wgOut->addHTML( |
| | 397 | + Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get', 'id' => 'mw-hiderevision-form' ) ) . |
| | 398 | + Xml::fieldset( wfMsg( 'oversight-legend' ) ) . |
| | 399 | + Xml::hidden( 'title', $wgTitle->getPrefixedDbKey() ) . |
| | 400 | + Xml::inputLabel( wfMsg( 'oversight-oversighter' ), 'user', 'mw-oversight-user', 20, $user ) . ' ' . |
| | 401 | + Xml::inputLabel( wfMsg( 'speciallogtitlelabel' ), 'page', 'mw-oversight-page', 25, $page ) . ' ' . |
| | 402 | + Xml::inputLabel( wfMsg( 'oversight-offender' ), 'author', 'mw-oversight-author', 20, $offender ) . ' ' . |
| | 403 | + Xml::submitButton( wfMsg( 'allpagessubmit' ), array( 'id' => 'mw-oversight-submit' ) ) . |
| | 404 | + Xml::closeElement( 'fieldset' ) . |
| | 405 | + Xml::closeElement( 'form' ) |
| | 406 | + ); |
| | 407 | + |
| 408 | 408 | $pager = new HiddenRevisionsPager( $this, array(), $title, $u, $offender ); |
| 409 | 409 | if( $pager->getNumRows() ) { |
| 410 | 410 | $wgOut->addHTML( wfMsgExt('oversight-header', array('parse') ) ); |