projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add Gradle build file
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
template
/
UnknownDateFilter.java
diff --git
a/src/main/java/net/pterodactylus/sone/template/UnknownDateFilter.java
b/src/main/java/net/pterodactylus/sone/template/UnknownDateFilter.java
index
4fc95f7
..
2c5a004
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/template/UnknownDateFilter.java
+++ b/
src/main/java/net/pterodactylus/sone/template/UnknownDateFilter.java
@@
-1,5
+1,5
@@
/*
/*
- * Sone - UnknownDateFilter.java - Copyright © 2011 David Roden
+ * Sone - UnknownDateFilter.java - Copyright © 2011
–2016
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
*
* 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
@@
-19,8
+19,8
@@
package net.pterodactylus.sone.template;
import java.util.Map;
import java.util.Map;
-import net.pterodactylus.util.template.DataProvider;
import net.pterodactylus.util.template.Filter;
import net.pterodactylus.util.template.Filter;
+import net.pterodactylus.util.template.TemplateContext;
import freenet.l10n.BaseL10n;
/**
import freenet.l10n.BaseL10n;
/**
@@
-54,7
+54,7
@@
public class UnknownDateFilter implements Filter {
* {@inheritDoc}
*/
@Override
* {@inheritDoc}
*/
@Override
- public Object format(
DataProvider dataProvider, Object data, Map<String, String
> parameters) {
+ public Object format(
TemplateContext templateContext, Object data, Map<String, Object
> parameters) {
if (data instanceof Long) {
if ((Long) data == 0) {
return l10nHandler.getString(unknownKey);
if (data instanceof Long) {
if ((Long) data == 0) {
return l10nHandler.getString(unknownKey);