updated most of the calls from the legacy UmbracoSettings to use the new way - nearly done.

This commit is contained in:
Shannon
2013-09-13 18:36:41 +10:00
parent f38a6e1561
commit 7538698e7b
49 changed files with 151 additions and 114 deletions

View File

@@ -9,6 +9,7 @@ using Examine.LuceneEngine.SearchCriteria;
using Examine.Providers;
using Lucene.Net.Documents;
using Umbraco.Core;
using Umbraco.Core.Configuration;
using Umbraco.Core.Dynamics;
using Umbraco.Core.Logging;
using Umbraco.Core.Models;
@@ -252,7 +253,7 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
if (xpath == null) throw new ArgumentNullException("xpath");
var values = new Dictionary<string, string> {{"nodeName", xpath.GetAttribute("nodeName", "")}};
if (!UmbracoSettings.UseLegacyXmlSchema)
if (!UmbracoConfiguration.Current.UmbracoSettings.Content.UseLegacyXmlSchema)
{
values.Add("nodeTypeAlias", xpath.Name);
}