aboutsummaryrefslogtreecommitdiff
path: root/src/java/com/juick/http/www/Discover.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-01-31 21:44:51 +0700
committerGravatar Ugnich Anton2014-01-31 21:44:51 +0700
commitab78d170650106d1d1113282598b6d8270ef2e76 (patch)
tree4ee839ab0d00cc4cec8ec55e94929cedd782302f /src/java/com/juick/http/www/Discover.java
parentcd7016bd09dd1fc21f375765d5cc510a1ad0656b (diff)
Russian as default
Diffstat (limited to 'src/java/com/juick/http/www/Discover.java')
-rw-r--r--src/java/com/juick/http/www/Discover.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/java/com/juick/http/www/Discover.java b/src/java/com/juick/http/www/Discover.java
index 4fb4c9c0..4e4a6b3d 100644
--- a/src/java/com/juick/http/www/Discover.java
+++ b/src/java/com/juick/http/www/Discover.java
@@ -25,8 +25,6 @@ import java.net.URLDecoder;
import java.net.URLEncoder;
import java.sql.Connection;
import java.util.ArrayList;
-import java.util.Locale;
-import java.util.ResourceBundle;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@@ -39,8 +37,6 @@ public class Discover {
protected void doGet(Connection sql, Connection sqlSearch, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
com.juick.User visitor = Utils.getVisitorUser(sql, request, response);
- Locale locale = request.getLocale();
- ResourceBundle rb = ResourceBundle.getBundle("Blogs", locale);
String requesturi = request.getRequestURI();
@@ -77,15 +73,15 @@ public class Discover {
canonical = "<link rel=\"canonical\" href=\"http://juick.com/tag/" + URLEncoder.encode(paramTag.Name, "UTF-8") + "\"/>";
}
PageTemplates.pageHead(out, title, canonical);
- PageTemplates.pageNavigation(out, locale, visitor, null);
+ PageTemplates.pageNavigation(out, visitor, null);
- PageTemplates.pageHomeColumn(out, sql, visitor, locale);
+ PageTemplates.pageHomeColumn(out, sql, visitor);
out.println("<section id=\"content\">");
if (mids.size() > 0) {
out.println("<ul>");
- PageTemplates.printMessages(out, sql, null, mids, visitor, locale, visitor == null ? 2 : 3, 0);
+ PageTemplates.printMessages(out, sql, null, mids, visitor, visitor == null ? 2 : 3, 0);
out.println("</ul>");
}
@@ -96,8 +92,8 @@ public class Discover {
out.println("</section>");
- PageTemplates.pageFooter(request, out, locale, visitor, true);
- PageTemplates.pageDialogTemplate(out, locale);
+ PageTemplates.pageFooter(request, out, visitor, true);
+ PageTemplates.pageDialogTemplate(out);
PageTemplates.pageEnd(out);
} finally {
out.close();