parent::__construct( 'Upload', 'upload' );
}
+ public function doesWrites() {
+ return true;
+ }
+
/** Misc variables **/
/** @var WebRequest|FauxRequest The request this form is supposed to handle */
$form = $this->getUploadForm( $warningHtml, $sessionKey, /* $hideIgnoreWarning */ true );
$form->setSubmitText( $this->msg( 'upload-tryagain' )->text() );
- $form->addButton( 'wpUploadIgnoreWarning', $this->msg( 'ignorewarning' )->text() );
- $form->addButton( 'wpCancelUpload', $this->msg( 'reuploaddesc' )->text() );
+ $form->addButton( array(
+ 'name' => 'wpUploadIgnoreWarning',
+ 'value' => $this->msg( 'ignorewarning' )->text()
+ ) );
+ $form->addButton( array(
+ 'name' => 'wpCancelUpload',
+ 'value' => $this->msg( 'reuploaddesc' )->text()
+ ) );
$this->showUploadForm( $form );