openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 45990ae694c2d7df46fb3f461b753a25b7401c2d
parent 44cbe87a12ec474b06c655cf58020cf53eda6090
Author: dankert <devnull@localhost>
Date:   Sat, 19 Dec 2009 10:44:32 +0100

Bei editierbaren Formularen (editable=true) die Form-Methode überschreiben.

Diffstat:
themes/default/include/html/form.inc.php | 14++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/themes/default/include/html/form.inc.php b/themes/default/include/html/form.inc.php @@ -12,8 +12,18 @@ $attr_id = $this->getRequestId(); #END-IF - if ($this->isEditable() && !$this->isEditMode()) - $attr_subaction = $subActionName; + if ($this->isEditable()) + { + if ($this->isEditMode()) + { + $attr_method = 'POST'; + } + else + { + $attr_method = 'GET'; + $attr_subaction = $subActionName; + } + } ?><form name="<?php echo $attr_name ?>" target="<?php echo $attr_target ?>"