Author: sshafroi
Date: 2008-08-14 13:31:54 +0200 (Thu, 14 Aug 2008)
New Revision: 6762

Modified:
   
trunk/search-command-config-spi/src/main/java/no/sesat/search/mode/SearchModeFactory.java
Log:
Use context from site instead of creating new

Modified: 
trunk/search-command-config-spi/src/main/java/no/sesat/search/mode/SearchModeFactory.java
===================================================================
--- 
trunk/search-command-config-spi/src/main/java/no/sesat/search/mode/SearchModeFactory.java
   2008-08-13 19:44:48 UTC (rev 6761)
+++ 
trunk/search-command-config-spi/src/main/java/no/sesat/search/mode/SearchModeFactory.java
   2008-08-14 11:31:54 UTC (rev 6762)
@@ -196,11 +196,7 @@
             // not found in this site's modes.xml. look in parent's site.
             final SearchModeFactory factory = instanceOf(ContextWrapper.wrap(
                     Context.class,
-                    new SiteContext() {
-                        public Site getSite() {
-                            return context.getSite().getParent();
-                        }
-                    },
+                    context.getSite().getParent().getSiteContext(),
                     context
             ));
             mode = factory.getMode(id);

_______________________________________________
Kernel-commits mailing list
[email protected]
http://sesat.no/mailman/listinfo/kernel-commits

Reply via email to