small layout stuff

This commit is contained in:
jakobdyrby
2014-04-07 09:35:31 +02:00
parent 37fbc3bab4
commit a03e46339d
2 changed files with 4 additions and 3 deletions

View File

@@ -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<KeyValuePair<string, XElement>> GetInstallActions(XElement actionsElement)

View File

@@ -1,5 +1,4 @@
using System;
using System.Linq;
using Umbraco.Core.Models;
namespace Umbraco.Core.Services