Shinsuke Sugaya 11 年之前
父节点
当前提交
c3a389fbed
共有 1 个文件被更改,包括 4 次插入7 次删除
  1. 4 7
      src/main/java/jp/sf/fess/action/IndexAction.java

+ 4 - 7
src/main/java/jp/sf/fess/action/IndexAction.java

@@ -205,9 +205,11 @@ public class IndexAction {
 
     protected String pagingQuery = null;
 
-    public boolean searchLogSupport;
+    public boolean searchLogSupport = Constants.TRUE.equals(crawlerProperties
+            .getProperty(Constants.SEARCH_LOG_PROPERTY, Constants.TRUE));
 
-    public boolean favoriteSupport;
+    public boolean favoriteSupport = Constants.TRUE.equals(crawlerProperties
+            .getProperty(Constants.USER_FAVORITE_PROPERTY, Constants.FALSE));
 
     public boolean screenShotSupport;
 
@@ -1281,11 +1283,6 @@ public class IndexAction {
         }
         langItems = systemHelper.getLanguageItems(locale);
 
-        searchLogSupport = Constants.TRUE.equals(crawlerProperties.getProperty(
-                Constants.SEARCH_LOG_PROPERTY, Constants.TRUE));
-        favoriteSupport = Constants.TRUE.equals(crawlerProperties.getProperty(
-                Constants.USER_FAVORITE_PROPERTY, Constants.FALSE));
-
         final HttpSession session = request.getSession(false);
         if (session != null) {
             final Object obj = session.getAttribute(SSCConstants.USER_INFO);