Add id to file delete confirmation form.
authorChad Horohoe <demon@users.mediawiki.org>
Thu, 18 Sep 2008 02:54:27 +0000 (02:54 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Thu, 18 Sep 2008 02:54:27 +0000 (02:54 +0000)
includes/FileDeleteForm.php

index 4f6986a..f2738a3 100644 (file)
@@ -135,7 +135,7 @@ class FileDeleteForm {
                        $suppress = '';
                }
 
-               $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getAction() ) ) .
+               $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getAction(), 'id' => 'mw-img-deleteconfirm' ) ) .
                        Xml::openElement( 'fieldset' ) .
                        Xml::element( 'legend', null, wfMsg( 'filedelete-legend' ) ) .
                        Xml::hidden( 'wpEditToken', $wgUser->editToken( $this->oldimage ) ) .