Permalink
Browse files

completed previous checkin

git-svn-id: https://videobrowser.googlecode.com/svn/trunk@1174 096cc86f-8a4c-0410-9b85-8b5e0eee1c45
  • Loading branch information...
1 parent aeb7b0e commit 7ca35b026a172044d03b10e67f35263b2167b83c sam.saffron committed Jun 9, 2009
Showing with 4 additions and 1 deletion.
  1. +4 −1 MediaBrowser/Library/Factories/Kernel.cs
@@ -151,7 +151,10 @@ public class Kernel {
kernel.EntityResolver = DefaultResolver(kernel.ConfigData);
- kernel.RootFolder = kernel.GetItem<AggregateFolder>(ResolveInitialFolder(kernel.ConfigData.InitialFolder));
+
+ // we need to enforce that the root folder is an aggregate folder
+ var root = kernel.GetLocation(ResolveInitialFolder(kernel.ConfigData.InitialFolder));
+ kernel.RootFolder = (AggregateFolder)BaseItemFactory<AggregateFolder>.Instance.CreateInstance(root, null);
kernel.Plugins = DefaultPlugins((loadDirective & KernelLoadDirective.ShadowPlugins) == KernelLoadDirective.ShadowPlugins);

0 comments on commit 7ca35b0

Please sign in to comment.