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:
696f27d
)
Allow HTMLForms to be submitted by GET requests.
author
Happy-melon
<happy-melon@users.mediawiki.org>
Wed, 15 Dec 2010 19:33:03 +0000
(19:33 +0000)
committer
Happy-melon
<happy-melon@users.mediawiki.org>
Wed, 15 Dec 2010 19:33:03 +0000
(19:33 +0000)
includes/HTMLForm.php
patch
|
blob
|
history
diff --git
a/includes/HTMLForm.php
b/includes/HTMLForm.php
index
62aecb0
..
cd3dc1f
100644
(file)
--- a/
includes/HTMLForm.php
+++ b/
includes/HTMLForm.php
@@
-92,6
+92,7
@@
class HTMLForm {
protected $mSubmitText;
protected $mSubmitTooltip;
protected $mTitle;
protected $mSubmitText;
protected $mSubmitTooltip;
protected $mTitle;
+ protected $mMethod = 'post';
protected $mUseMultipart = false;
protected $mHiddenFields = array();
protected $mUseMultipart = false;
protected $mHiddenFields = array();
@@
-375,7
+376,7
@@
class HTMLForm {
# Attributes
$attribs = array(
'action' => $this->getTitle()->getFullURL(),
# Attributes
$attribs = array(
'action' => $this->getTitle()->getFullURL(),
- 'method' =>
'post'
,
+ 'method' =>
$this->mMethod
,
'class' => 'visualClear',
'enctype' => $encType,
);
'class' => 'visualClear',
'enctype' => $encType,
);
@@
-586,6
+587,14
@@
class HTMLForm {
function getTitle() {
return $this->mTitle;
}
function getTitle() {
return $this->mTitle;
}
+
+ /**
+ * Set the method used to submit the form
+ * @param $method String
+ */
+ public function setMethod( $method='post' ){
+ $this->mMethod = $method;
+ }
/**
* TODO: Document
/**
* TODO: Document