projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace Sone provider interface with Kotlin version
[Sone.git]
/
src
/
main
/
kotlin
/
net
/
pterodactylus
/
sone
/
web
/
pages
/
ImageBrowserPage.kt
diff --git
a/src/main/kotlin/net/pterodactylus/sone/web/pages/ImageBrowserPage.kt
b/src/main/kotlin/net/pterodactylus/sone/web/pages/ImageBrowserPage.kt
index
3181355
..
60a2bd5
100644
(file)
--- a/
src/main/kotlin/net/pterodactylus/sone/web/pages/ImageBrowserPage.kt
+++ b/
src/main/kotlin/net/pterodactylus/sone/web/pages/ImageBrowserPage.kt
@@
-40,7
+40,7
@@
class ImageBrowserPage(template: Template, webInterface: WebInterface):
}
} else {
templateContext["soneRequested"] = true
}
} else {
templateContext["soneRequested"] = true
- templateContext["sone"] = webInterface.core.getSone(freenetRequest.httpRequest.getParam("sone"))
.orNull()
?: getCurrentSone(freenetRequest.toadletContext)
+ templateContext["sone"] = webInterface.core.getSone(freenetRequest.httpRequest.getParam("sone")) ?: getCurrentSone(freenetRequest.toadletContext)
}
}
}
}