Backports fix for FullpathToRoot in GlobalSettings... not sure how some unit tests have been working this whole time.

Changes UseLegacySchema default value to false... was set to true!?
un-ignores LookupByNiceUrl tests and still ensures it doesn't require a database to test by passing in an optional parameter
to LookupByNiceUrl to specify if we want to include domain lookups or not (default is true)
This commit is contained in:
Shannon Deminick
2013-02-21 22:02:56 +06:00
parent 0b74164a8e
commit 828dc64035
6 changed files with 38 additions and 14 deletions

View File

@@ -221,7 +221,7 @@ namespace Umbraco.Core.Configuration
/// <value>The fullpath to root.</value>
public static string FullpathToRoot
{
get { return HttpRuntime.AppDomainAppPath; }
get { return IOHelper.GetRootDirectorySafe(); }
}
/// <summary>

View File

@@ -1062,7 +1062,7 @@ namespace Umbraco.Core.Configuration
get
{
// default: true
return _useLegacySchema ?? GetKeyValue("/settings/content/UseLegacyXmlSchema", true);
return _useLegacySchema ?? GetKeyValue("/settings/content/UseLegacyXmlSchema", false);
}
internal set
{