projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Close all input streams after parsing templates.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
EditImagePage.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/EditImagePage.java
b/src/main/java/net/pterodactylus/sone/web/EditImagePage.java
index
75872eb
..
9a29c85
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/EditImagePage.java
+++ b/
src/main/java/net/pterodactylus/sone/web/EditImagePage.java
@@
-73,8
+73,7
@@
public class EditImagePage extends SoneTemplatePage {
if (title.length() == 0) {
templateContext.set("titleMissing", true);
}
if (title.length() == 0) {
templateContext.set("titleMissing", true);
}
- image.setTitle(title);
- image.setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description));
+ image.modify().setTitle(title).setDescription(TextFilter.filter(request.getHttpRequest().getHeader("host"), description)).update();
}
webInterface.getCore().touchConfiguration();
throw new RedirectException(returnPage);
}
webInterface.getCore().touchConfiguration();
throw new RedirectException(returnPage);