From a03e46339d90f618bae8604b2073aebe13d1b01c Mon Sep 17 00:00:00 2001 From: jakobdyrby Date: Mon, 7 Apr 2014 09:35:31 +0200 Subject: [PATCH] small layout stuff --- src/Umbraco.Core/Services/PackageInstallerService.cs | 6 ++++-- src/Umbraco.Core/Services/PackageValidationHelper.cs | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Umbraco.Core/Services/PackageInstallerService.cs b/src/Umbraco.Core/Services/PackageInstallerService.cs index 530d0612f2..bf5cf26e00 100644 --- a/src/Umbraco.Core/Services/PackageInstallerService.cs +++ b/src/Umbraco.Core/Services/PackageInstallerService.cs @@ -139,8 +139,10 @@ namespace Umbraco.Core.Services private static string GetUninstallActions(XElement actionsElement) { //saving the uninstall actions untill the package is uninstalled. - return actionsElement.Elements(Constants.Packaging.ActionNodeName).Where(e => e.HasAttributes && e.Attribute(Constants.Packaging.UndoNodeAttribute) != null && e.Attribute(Constants.Packaging.UndoNodeAttribute).Value.Equals("false()", StringComparison.InvariantCultureIgnoreCase) == false) // SelectNodes("Actions/Action [@undo != false()]"); - .Select(m => m.Value).Aggregate((workingSentence, next) => next + workingSentence); + return actionsElement.Elements(Constants.Packaging.ActionNodeName) + .Where(e => e.HasAttributes && e.Attribute(Constants.Packaging.UndoNodeAttribute) != null && e.Attribute(Constants.Packaging.UndoNodeAttribute) + .Value.Equals("false()", StringComparison.InvariantCultureIgnoreCase) == false) // SelectNodes("Actions/Action [@undo != false()]"); + .Select(m => m.Value).Aggregate((workingSentence, next) => next + workingSentence); } private static IEnumerable> GetInstallActions(XElement actionsElement) diff --git a/src/Umbraco.Core/Services/PackageValidationHelper.cs b/src/Umbraco.Core/Services/PackageValidationHelper.cs index cfdb98da0c..e818781734 100644 --- a/src/Umbraco.Core/Services/PackageValidationHelper.cs +++ b/src/Umbraco.Core/Services/PackageValidationHelper.cs @@ -1,5 +1,4 @@ using System; -using System.Linq; using Umbraco.Core.Models; namespace Umbraco.Core.Services