Clean up SoneTemplatePage’s constructors
[Sone.git] / src / main / kotlin / net / pterodactylus / sone / web / pages / ViewPostPage.kt
index 910c939..d3f4540 100644 (file)
@@ -13,7 +13,7 @@ import java.net.URI
  * This page lets the user view a post and all its replies.
  */
 class ViewPostPage(template: Template, webInterface: WebInterface):
  * This page lets the user view a post and all its replies.
  */
 class ViewPostPage(template: Template, webInterface: WebInterface):
-               SoneTemplatePage("viewPost.html", template, "Page.ViewPost.Title", webInterface, false) {
+               SoneTemplatePage("viewPost.html", webInterface, template, "Page.ViewPost.Title") {
 
        override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
                templateContext["post"] = freenetRequest.parameters["post"]?.let(webInterface.core::getPost)
 
        override fun handleRequest(freenetRequest: FreenetRequest, templateContext: TemplateContext) {
                templateContext["post"] = freenetRequest.parameters["post"]?.let(webInterface.core::getPost)