X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpages%2FEditProfilePage.kt;h=b7524d030627ecb2a67b84e95a4ebd2d4688f3b4;hp=f25b5b3371d070dac608401bdd69da008b4c4f68;hb=e3da46d8947ab8a542a156069b3b24c13fd011df;hpb=6a3f1fede0cda5cd6ed56204aa1dd37a19813cb9 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfilePage.kt b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfilePage.kt index f25b5b3..b7524d0 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfilePage.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/pages/EditProfilePage.kt @@ -15,8 +15,8 @@ import javax.inject.Inject * This page lets the user edit her profile. */ @MenuName("EditProfile") -class EditProfilePage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders) : - LoggedInPage("editProfile.html", template, "Page.EditProfile.Title", webInterface, loaders) { +class EditProfilePage @Inject constructor(template: Template, webInterface: WebInterface, loaders: Loaders, templateRenderer: TemplateRenderer) : + LoggedInPage("editProfile.html", template, "Page.EditProfile.Title", webInterface, loaders, templateRenderer) { override fun handleRequest(soneRequest: SoneRequest, currentSone: Sone, templateContext: TemplateContext) { currentSone.profile.let { profile ->