Changed conditions to put the constant last, so (x == false) instead of (false == x).
Code now conforms to project coding standards.
This commit is contained in:
@@ -90,7 +90,7 @@ namespace umbraco.presentation.install
|
||||
|
||||
//if this is not an upgrade we will log in with the default user.
|
||||
// It's not considered an upgrade if the ConfigurationStatus is missing or empty.
|
||||
if (false == String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus))
|
||||
if (String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
@@ -28,7 +28,7 @@ namespace umbraco.presentation.install.steps.Definitions
|
||||
|
||||
public override bool Completed()
|
||||
{
|
||||
if (false == String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus))
|
||||
if (String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false)
|
||||
return true;
|
||||
|
||||
if (InstalledPackage.GetAllInstalledPackages().Count > 0)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace umbraco.presentation.install
|
||||
protected void Page_Load(object sender, System.EventArgs e)
|
||||
{
|
||||
// Display the Umbraco upgrade message if Umbraco is already installed
|
||||
if (false == String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus))
|
||||
if (String.IsNullOrWhiteSpace(GlobalSettings.ConfigurationStatus) == false)
|
||||
{
|
||||
ph_install.Visible = false;
|
||||
ph_upgrade.Visible = true;
|
||||
|
||||
Reference in New Issue
Block a user