diff --git a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj index d0981977cf..bc06fffbb8 100644 --- a/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj +++ b/src/Umbraco.Web.UI/Umbraco.Web.UI.csproj @@ -97,9 +97,6 @@ False ..\packages\ClientDependency.1.5.1.0\lib\ClientDependency.Core.dll - - ..\packages\ClientDependency-Mvc.1.5.1.0\lib\ClientDependency.Core.Mvc.dll - False ..\..\lib\CookComputing.XmlRpcV2.dll diff --git a/src/Umbraco.Web.UI/web.Template.config b/src/Umbraco.Web.UI/web.Template.config index 52fae663cf..27c815253a 100644 --- a/src/Umbraco.Web.UI/web.Template.config +++ b/src/Umbraco.Web.UI/web.Template.config @@ -241,11 +241,7 @@ - - - - - + diff --git a/src/Umbraco.Web/umbraco.presentation/install/steps/theend.ascx.cs b/src/Umbraco.Web/umbraco.presentation/install/steps/theend.ascx.cs index 9e05fc88aa..05c1e4694b 100644 --- a/src/Umbraco.Web/umbraco.presentation/install/steps/theend.ascx.cs +++ b/src/Umbraco.Web/umbraco.presentation/install/steps/theend.ascx.cs @@ -31,8 +31,6 @@ namespace umbraco.presentation.install.steps if (!cms.businesslogic.skinning.Skinning.IsStarterKitInstalled()) customizeSite.Visible = false; - - new ApplicationTreeRegistrar(); } #region Web Form Designer generated code diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/TreeDefinitionCollection.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/TreeDefinitionCollection.cs index 5d816ce07f..b48c905777 100644 --- a/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/TreeDefinitionCollection.cs +++ b/src/Umbraco.Web/umbraco.presentation/umbraco/Trees/TreeDefinitionCollection.cs @@ -15,6 +15,7 @@ using umbraco.interfaces; using umbraco.BusinessLogic.Utils; using umbraco.BusinessLogic; using umbraco.BasePages; +using TypeFinder = umbraco.BusinessLogic.Utils.TypeFinder; namespace umbraco.cms.presentation.Trees { @@ -151,11 +152,12 @@ namespace umbraco.cms.presentation.Trees l.UpgradeToWriteLock(); - - var foundITrees = PluginManager.Current.ResolveTrees(); + List foundITrees = TypeFinder.FindClassesOfType(); + //var foundITrees = PluginManager.Current.ResolveTrees(); var objTrees = ApplicationTree.getAll(); - var appTrees = new List(); + List appTrees = new List(); + //var appTrees = new List(); appTrees.AddRange(objTrees); var apps = Application.getAll(); diff --git a/src/umbraco.businesslogic/ApplicationTreeRegistrar.cs b/src/umbraco.businesslogic/ApplicationTreeRegistrar.cs index 07175dcc96..97628bbacd 100644 --- a/src/umbraco.businesslogic/ApplicationTreeRegistrar.cs +++ b/src/umbraco.businesslogic/ApplicationTreeRegistrar.cs @@ -31,7 +31,7 @@ namespace umbraco.BusinessLogic public ApplicationTreeRegistrar() { //don't do anything if the application is not configured! - if (ApplicationContext.Current == null || !ApplicationContext.Current.IsConfigured) + if (!ApplicationContext.Current.IsConfigured) return; // Load all Trees by attribute and add them to the XML config