dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c5f843d
)
Remove unused (and seemingly useless) param from confirmDelete().
author
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 7 Jul 2008 16:56:32 +0000
(16:56 +0000)
committer
Chad Horohoe
<demon@users.mediawiki.org>
Mon, 7 Jul 2008 16:56:32 +0000
(16:56 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
ca04622
..
0c24e70
100644
(file)
--- 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
/**
* 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
*/
* @param $reason string Prefilled reason
*/
- function confirmDelete( $
par, $
reason ) {
+ function confirmDelete( $reason ) {
global $wgOut, $wgUser, $wgContLang;
$align = $wgContLang->isRtl() ? 'left' : 'right';
global $wgOut, $wgUser, $wgContLang;
$align = $wgContLang->isRtl() ? 'left' : 'right';
@@
-2189,7
+2188,7
@@
class Article {
$suppress = '';
}
$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' ) .
Xml::openElement( 'fieldset', array( 'id' => 'mw-delete-table' ) ) .
Xml::tags( 'legend', null, wfMsgExt( 'delete-legend', array( 'parsemag', 'escapenoentities' ) ) ) .
Xml::openElement( 'table' ) .