aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Help.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/java/com/juick/http/www/Help.java')
-rw-r--r--src/java/com/juick/http/www/Help.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/java/com/juick/http/www/Help.java b/src/java/com/juick/http/www/Help.java
index e69b93a7..eed62efa 100644
--- a/src/java/com/juick/http/www/Help.java
+++ b/src/java/com/juick/http/www/Help.java
@@ -43,14 +43,14 @@ public class Help {
String path[] = request.getRequestURI().split("/");
String page;
if (path.length < 3 || path.length > 4 || path[2].length() != 2 || !path[2].matches("^[a-z]+$")) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
if (path.length == 4) {
page = path[3];
if (!page.matches("^[a-zA-Z0-9\\-]*$") || page.equals("navigation") || page.equals("index")) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
} else {
@@ -59,14 +59,14 @@ public class Help {
File f = new File("/var/www/juick.com/help/" + path[2] + "/" + page);
if (!f.isFile()) {
- response.sendError(404);
+ Errors.doGet404(sql, request, response);
return;
}
response.setContentType("text/html; charset=UTF-8");
PrintWriter out = response.getWriter();
try {
- PageTemplates.pageHead(out, "Помощь", "");
+ PageTemplates.pageHead(out, "Помощь", null);
PageTemplates.pageNavigation(out, visitor, null);
out.println("<aside id=\"column\">");