return;
}
- $confirm = $wgRequest->getBool( 'wpConfirmProtect' ) &&
- $wgRequest->wasPosted() &&
+ $confirm = $wgRequest->wasPosted() &&
$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) );
$moveonly = $wgRequest->getBool( 'wpMoveOnly' );
$reason = $wgRequest->getText( 'wpReasonProtect' );
$wgOut->setPageTitle( wfMsg( 'confirmunprotect' ) );
$wgOut->setSubtitle( wfMsg( 'unprotectsub', $sub ) );
$wgOut->addWikiText( wfMsg( 'confirmunprotecttext' ) );
- $check = htmlspecialchars( wfMsg( 'confirmunprotect' ) );
$protcom = htmlspecialchars( wfMsg( 'unprotectcomment' ) );
$formaction = $this->mTitle->escapeLocalURL( 'action=unprotect' . $par );
} else {
$wgOut->setPageTitle( wfMsg( 'confirmprotect' ) );
$wgOut->setSubtitle( wfMsg( 'protectsub', $sub ) );
$wgOut->addWikiText( wfMsg( 'confirmprotecttext' ) );
- $check = htmlspecialchars( wfMsg( 'confirmprotect' ) );
$moveonly = htmlspecialchars( wfMsg( 'protectmoveonly' ) );
$protcom = htmlspecialchars( wfMsg( 'protectcomment' ) );
$formaction = $this->mTitle->escapeLocalURL( 'action=protect' . $par );
</tr>
<tr>
<td> </td>
- </tr>
- <tr>
- <td align='right'>
- <input type='checkbox' name='wpConfirmProtect' value='1' id='wpConfirmProtect' />
- </td>
- <td>
- <label for='wpConfirmProtect'>{$check}</label>
- </td>
- </tr> " );
+ </tr>" );
if($moveonly != '') {
$wgOut->AddHTML( "
<tr>
function delete() {
global $wgUser, $wgOut, $wgMessageCache, $wgRequest;
$fname = 'Article::delete';
- $confirm = $wgRequest->getBool( 'wpConfirm' ) &&
- $wgRequest->wasPosted() &&
+ $confirm = $wgRequest->wasPosted() &&
$wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) );
$reason = $wgRequest->getText( 'wpReason' );
$formaction = $this->mTitle->escapeLocalURL( 'action=delete' . $par );
$confirm = htmlspecialchars( wfMsg( 'confirm' ) );
- $check = htmlspecialchars( wfMsg( 'confirmcheck' ) );
$delcom = htmlspecialchars( wfMsg( 'deletecomment' ) );
$token = htmlspecialchars( $wgUser->editToken() );
<tr>
<td> </td>
</tr>
- <tr>
- <td align='right'>
- <input type='checkbox' name='wpConfirm' value='1' id='wpConfirm' />
- </td>
- <td>
- <label for='wpConfirm'>{$check}</label>
- </td>
- </tr>
<tr>
<td> </td>
<td>
Please confirm that you intend to do this, that you understand the
consequences, and that you are doing this in accordance with
[[Project:Policy]].",
-'confirmcheck' => 'Yes, I really want to delete this.',
'actioncomplete' => 'Action complete',
'deletedtext' => "\"$1\" has been deleted.
See $2 for a record of recent deletions.",