Removes UI logic for installation detection, need to move this all to the UmbracoModule - then back port to 6.2

This commit is contained in:
Shannon
2013-11-01 09:25:19 +11:00
parent c722e57914
commit 65db15487e
3 changed files with 8 additions and 23 deletions

View File

@@ -182,7 +182,7 @@ namespace Umbraco.Web.Editors
},
{"isDebuggingEnabled", HttpContext.IsDebuggingEnabled},
{
"application", getApplicationState()
"application", GetApplicationState()
}
};
@@ -191,16 +191,15 @@ namespace Umbraco.Web.Editors
}
private Dictionary<string, object> getApplicationState()
private Dictionary<string, object> GetApplicationState()
{
if (!ApplicationContext.IsConfigured)
if (ApplicationContext.IsConfigured == false)
return null;
var app = new Dictionary<string, object>();
app.Add("assemblyVersion", UmbracoVersion.AssemblyVersion);
app.Add("isReady", ApplicationContext.IsReady);
app.Add("isConfigured", ApplicationContext.IsConfigured);
app.Add("isDatabaseConfigured", ApplicationContext.DatabaseContext.IsDatabaseConfigured);
var app = new Dictionary<string, object>
{
{"assemblyVersion", UmbracoVersion.AssemblyVersion}
};
var version = string.IsNullOrEmpty(UmbracoVersion.CurrentComment)
? UmbracoVersion.Current.ToString(3)