X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fpage%2FPageToadletFactory.kt;h=4c671ad7c577651e5c3f96905f2c5c0aec198f9a;hp=3a0175465fda49104daf97474b3da0c58790dd69;hb=438378deab1514f0f608d975ef65f5b7aea44ccb;hpb=2f1b2a7d5c7c722ec44c26253e59bde9e4f790c2 diff --git a/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt b/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt index 3a01754..4c671ad 100644 --- a/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt +++ b/src/main/kotlin/net/pterodactylus/sone/web/page/PageToadletFactory.kt @@ -1,5 +1,5 @@ /* - * Sone - PageToadletFactory.java - Copyright © 2010–2019 David Roden + * Sone - PageToadletFactory.kt - Copyright © 2010–2020 David Roden * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -22,7 +22,11 @@ import freenet.clients.http.* import net.pterodactylus.util.web.* import javax.inject.* -class PageToadletFactory @Inject constructor(private val highLevelSimpleClient: HighLevelSimpleClient, private val sessionManager: SessionManager, private val pathPrefix: String) { +class PageToadletFactory @Inject constructor( + private val highLevelSimpleClient: HighLevelSimpleClient, + private val sessionManager: SessionManager, + @Named("toadletPathPrefix") private val pathPrefix: String +) { @JvmOverloads fun createPageToadlet(page: Page, menuName: String? = null) =