Remove unused (and seemingly useless) param from confirmDelete().
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 7 Jul 2008 16:56:32 +0000 (16:56 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 7 Jul 2008 16:56:32 +0000 (16:56 +0000)
includes/Article.php

index ca04622..0c24e70 100644 (file)
@@ -2093,7 +2093,7 @@ class Article {
                        }
                }
 
-               return $this->confirmDelete( '', $reason );
+               return $this->confirmDelete( $reason );
        }
 
        /**
@@ -2168,10 +2168,9 @@ class Article {
 
        /**
         * Output deletion confirmation dialog
-        * @param $par string FIXME: do we need this parameter? One Call from Article::delete with '' only.
         * @param $reason string Prefilled reason
         */
-       function confirmDelete( $par, $reason ) {
+       function confirmDelete( $reason ) {
                global $wgOut, $wgUser, $wgContLang;
                $align = $wgContLang->isRtl() ? 'left' : 'right';
 
@@ -2189,7 +2188,7 @@ class Article {
                        $suppress = '';
                }
 
-               $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->mTitle->getLocalURL( 'action=delete' . $par ), 'id' => 'deleteconfirm' ) ) .
+               $form = Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->mTitle->getLocalURL( 'action=delete' ), 'id' => 'deleteconfirm' ) ) .
                        Xml::openElement( 'fieldset', array( 'id' => 'mw-delete-table' ) ) .
                        Xml::tags( 'legend', null, wfMsgExt( 'delete-legend', array( 'parsemag', 'escapenoentities' ) ) ) .
                        Xml::openElement( 'table' ) .