Author: lektran
Date: Fri Sep 10 09:34:29 2010
New Revision: 995719
URL:
http://svn.apache.org/viewvc?rev=995719&view=revLog:
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;
}