From cc3e4bab11d2aba19a4a7244354090dc1dd92379 Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Mon, 7 Jul 2008 16:56:32 +0000 Subject: [PATCH] Remove unused (and seemingly useless) param from confirmDelete(). --- includes/Article.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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' ) . -- 2.20.1