summaryrefslogtreecommitdiff
path: root/inc/Form/Form.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2015-05-08 17:26:11 +0200
committerAndreas Gohr <andi@splitbrain.org>2015-05-08 17:26:11 +0200
commit6d0ceaf93ca31dfb83fd4325ef2eecd9cef733c0 (patch)
tree468e38161d822e90e7d8f5b27d333273966fd890 /inc/Form/Form.php
parente7a32b176701c088bab045437819448bb9adad41 (diff)
downloadrpg-6d0ceaf93ca31dfb83fd4325ef2eecd9cef733c0.tar.gz
rpg-6d0ceaf93ca31dfb83fd4325ef2eecd9cef733c0.tar.bz2
added a first few tests.
this is far from comprehensible, but should give an idea how the new library works and how to write tests
Diffstat (limited to 'inc/Form/Form.php')
-rw-r--r--inc/Form/Form.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/inc/Form/Form.php b/inc/Form/Form.php
index 3a8b590e7..dc502e021 100644
--- a/inc/Form/Form.php
+++ b/inc/Form/Form.php
@@ -34,7 +34,7 @@ class Form extends Element {
if(!$this->attr('action')) {
$get = $_GET;
if(isset($get['id'])) unset($get['id']);
- $self = wl($ID, $get);
+ $self = wl($ID, $get, false, '&'); //attributes are escaped later
$this->attr('action', $self);
}
@@ -51,8 +51,8 @@ class Form extends Element {
// add the security token by default
$this->setHiddenField('sectok', getSecurityToken());
- // identify this as a form2 based form in HTML
- $this->addClass('doku_form2');
+ // identify this as a new form based form in HTML
+ $this->addClass('doku_form');
}
/**