svn commit: r995719 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r995719 - /ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java

lektran
Author: lektran
Date: Fri Sep 10 09:34:29 2010
New Revision: 995719

URL: http://svn.apache.org/viewvc?rev=995719&view=rev
Log:
Simplify method by passing a default value to UtilProperties.getPropertyValue(...)

Modified:
    ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java

Modified: ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java?rev=995719&r1=995718&r2=995719&view=diff
==============================================================================
--- ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java (original)
+++ ofbiz/trunk/applications/content/src/org/ofbiz/content/search/SearchWorker.java Fri Sep 10 09:34:29 2010
@@ -240,10 +240,7 @@ public class SearchWorker {
     public static String getIndexPath(String path) {
         String indexAllPath = path;
         if (UtilValidate.isEmpty(indexAllPath)) {
-            indexAllPath = UtilProperties.getPropertyValue("search", "defaultIndex");
-        }
-        if (UtilValidate.isEmpty(indexAllPath)) {
-            indexAllPath = "index";
+            indexAllPath = UtilProperties.getPropertyValue("search", "defaultIndex", "index");
         }
         return indexAllPath;
     }