summaryrefslogtreecommitdiff
path: root/modules/user/controllers
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-01-12 07:50:04 +0000
committerBharat Mediratta <bharat@menalto.com>2009-01-12 07:50:04 +0000
commitae73ef3d5743b2afba65db7d89e78b135d8c9090 (patch)
tree52faf725a5756933a0547b2ea908a6d05051b1e4 /modules/user/controllers
parentb19729435cd918e03e1bd6fbb91f7281bf3e5873 (diff)
Updated for new Form_Submit API.
OLD: $form->submit("Foo") --> <input type="submit" value="Foo"> New: $form->submit("foo_button")->("Foo") --> <input type="submit" name="foo_button" value="Foo"> Mostly we don't care what the button is so we leave the name blank.
Diffstat (limited to 'modules/user/controllers')
-rw-r--r--modules/user/controllers/login.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/controllers/login.php b/modules/user/controllers/login.php
index b3ab5b10..66ea55e6 100644
--- a/modules/user/controllers/login.php
+++ b/modules/user/controllers/login.php
@@ -58,7 +58,7 @@ class Login_Controller extends Controller {
$group->input("name")->label(t("Name"))->id("gName")->class(null);
$group->password("password")->label(t("Password"))->id("gPassword")->class(null);
$group->inputs["name"]->error_messages("invalid_login", t("Invalid name or password"));
- $group->submit(t("Login"));
+ $group->submit("")->value(t("Login"));
return $form;
}
} \ No newline at end of file