From 0ac0337b61614cf23833f866fd8f0568d0f7bf58 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 13 Jan 2011 13:04:41 +0100 Subject: [PATCH] Name button differently (and all using the same style). --- src/main/java/net/pterodactylus/sone/web/EditProfilePage.java | 2 +- src/main/resources/templates/editProfile.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java index 5b2c301..4f7e1f3 100644 --- a/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java +++ b/src/main/java/net/pterodactylus/sone/web/EditProfilePage.java @@ -64,7 +64,7 @@ public class EditProfilePage extends SoneTemplatePage { Integer birthMonth = profile.getBirthMonth(); Integer birthYear = profile.getBirthYear(); if (request.getMethod() == Method.POST) { - if (request.getHttpRequest().getPartAsStringFailsafe("saveProfile", 4).equals("true")) { + if (request.getHttpRequest().getPartAsStringFailsafe("save-profile", 4).equals("true")) { firstName = request.getHttpRequest().getPartAsStringFailsafe("first-name", 256).trim(); middleName = request.getHttpRequest().getPartAsStringFailsafe("middle-name", 256).trim(); lastName = request.getHttpRequest().getPartAsStringFailsafe("last-name", 256).trim(); diff --git a/src/main/resources/templates/editProfile.html b/src/main/resources/templates/editProfile.html index e54c347..918b0c1 100644 --- a/src/main/resources/templates/editProfile.html +++ b/src/main/resources/templates/editProfile.html @@ -67,7 +67,7 @@
- +
-- 2.7.4