From: Chad Horohoe Date: Mon, 7 Jul 2008 16:56:32 +0000 (+0000) Subject: Remove unused (and seemingly useless) param from confirmDelete(). X-Git-Tag: 1.31.0-rc.0~46656 X-Git-Url: http://git.cyclocoop.org/%7B%24admin_url%7Dmes_infos.php?a=commitdiff_plain;h=cc3e4bab11d2aba19a4a7244354090dc1dd92379;p=lhc%2Fweb%2Fwiklou.git Remove unused (and seemingly useless) param from confirmDelete(). --- diff --git a/includes/Article.php b/includes/Article.php index ca04622f11..0c24e707d1 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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' ) .