X-Git-Url: https://code.wpia.club/?a=blobdiff_plain;f=src%2Forg%2Fcacert%2Fgigi%2Fpages%2Ferror%2FPageNotFound.java;h=e6ba0640626b528f7b19327b39d3de1e918a8ce2;hb=30a66c84a3f33e99bd5cbfe50b25a83acfbf5425;hp=72057a6678859ff44be8e552d0bf5a8717c96d9e;hpb=3814ddf510756ccc147782009972956f84a8ad7b;p=gigi.git diff --git a/src/org/cacert/gigi/pages/error/PageNotFound.java b/src/org/cacert/gigi/pages/error/PageNotFound.java index 72057a66..e6ba0640 100644 --- a/src/org/cacert/gigi/pages/error/PageNotFound.java +++ b/src/org/cacert/gigi/pages/error/PageNotFound.java @@ -9,15 +9,18 @@ import org.cacert.gigi.pages.Page; public class PageNotFound extends Page { - public PageNotFound(String title) { - super(title); - } - - @Override - public void doGet(HttpServletRequest req, HttpServletResponse resp) - throws IOException { - getDefaultTemplate().output(resp.getWriter(), Page.getLanguage(req), - null); - } + public PageNotFound() { + super("File not found!"); + } + + @Override + public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { + getDefaultTemplate().output(resp.getWriter(), Page.getLanguage(req), null); + } + + @Override + public boolean needsLogin() { + return false; + } }