Refactoring the umbraco version from GlobalSettings to be a seperate class that simply wraps the version from the assembly.

Since the version will come from the assembly there is no need to have it as part of the GlobalSetting, which is internal and needs a makeover of its own.
This commit is contained in:
Morten Christensen
2012-11-26 11:18:06 -01:00
parent 34ac97442d
commit 0ae707fe78
20 changed files with 91 additions and 60 deletions

View File

@@ -3,7 +3,7 @@ using System.ComponentModel;
using System.Diagnostics;
using System.Threading;
using System.Web;
using Umbraco.Core.Configuration;
using umbraco.BusinessLogic;
using System.Collections.Generic;
using umbraco.BusinessLogic.Utils;
@@ -371,7 +371,7 @@ namespace umbraco.presentation
// Check for configured key, checking for currentversion to ensure that a request with
// no httpcontext don't set the whole app in configure mode
if (Umbraco.Core.Configuration.GlobalSettings.Version != null && !GlobalSettings.Configured)
if (UmbracoVersion.Current != null && !GlobalSettings.Configured)
{
HttpApp.Application["umbracoNeedConfiguration"] = true;
}