summaryrefslogtreecommitdiff
path: root/core/libraries
diff options
context:
space:
mode:
Diffstat (limited to 'core/libraries')
-rw-r--r--core/libraries/MY_Forge.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/libraries/MY_Forge.php b/core/libraries/MY_Forge.php
index 877fe62c..b302c8ef 100644
--- a/core/libraries/MY_Forge.php
+++ b/core/libraries/MY_Forge.php
@@ -24,14 +24,13 @@ class Forge extends Forge_Core {
*/
public function __construct($action=null, $title='', $method=null, $attr=array()) {
parent::__construct($action, $title, $method, $attr);
- $this->input("csrf")->type("hidden")->value("");
+ $this->hidden("csrf")->value("");
}
-
/**
* Use our own template
*/
public function render($template="form.html", $custom=false) {
- $this->inputs["csrf"]->value(access::csrf_token());
+ $this->hidden["csrf"]->value(access::csrf_token());
return parent::render($template, $custom);
}