Fix build errors after merge

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-04-13 11:25:11 -07:00
parent 6c74a37693
commit ca47a0b8fb
3 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
using NUnit.Framework; using NUnit.Framework;
using Orchard.Extensions; using Orchard.Utility.Extensions;
namespace Orchard.Tests.Utility.Extensions { namespace Orchard.Tests.Utility.Extensions {
[TestFixture] [TestFixture]

View File

@@ -3,12 +3,12 @@ using System.Collections.Generic;
using System.IO; using System.IO;
using System.Web; using System.Web;
using System.Web.Mvc; using System.Web.Mvc;
using Orchard.Extensions;
using Orchard.Localization; using Orchard.Localization;
using Orchard.Media.Models; using Orchard.Media.Models;
using Orchard.Media.Services; using Orchard.Media.Services;
using Orchard.Media.ViewModels; using Orchard.Media.ViewModels;
using Orchard.UI.Notify; using Orchard.UI.Notify;
using Orchard.Utility.Extensions;
namespace Orchard.Media.Controllers { namespace Orchard.Media.Controllers {
[ValidateInput(false)] [ValidateInput(false)]

View File

@@ -14,5 +14,9 @@ namespace Orchard.Utility.Extensions {
return cleanTailRegex.Replace(text.Substring(0, characterCount + 1), "") + ellipsis; return cleanTailRegex.Replace(text.Substring(0, characterCount + 1), "") + ellipsis;
} }
public static bool IsNullOrEmptyTrimmed(this string text) {
if (text == null) return true;
return string.IsNullOrEmpty(text.Trim());
}
} }
} }