Commit 0e02db14 authored by Matija Obreza's avatar Matija Obreza

Merge branch '246-term-of-the-copywriter-has-expired' into 'master'

Resolve "Term of the copywriter has expired."

Closes #246

See merge request genesys-pgr/genesys-server!143
parents e32d43a1 5ff765ca
......@@ -16,6 +16,8 @@
package org.genesys2.spring;
import java.time.LocalDate;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
......@@ -105,6 +107,7 @@ public class AddStuffInterceptor implements HandlerInterceptor, InitializingBean
request.setAttribute("buildRevision", buildRevision);
request.setAttribute("cdnServers", randomCdnServer);
request.setAttribute("baseUrl", baseUrl);
request.setAttribute("currentYear", LocalDate.now().getYear());
if (googleAnalyticsAccount != null) {
request.setAttribute("googleAnalyticsAccount", googleAnalyticsAccount);
......
......@@ -44,7 +44,7 @@
</ul>
<div class="text-center" id="copyright">
<p>
<spring:message code="footer.copyright-statement" arguments="2017" htmlEscape="false" />
<spring:message code="footer.copyright-statement" arguments="${currentYear.toString()}" htmlEscape="false" />
</p>
</div>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment