mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
Fix build errors after merge
--HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using NUnit.Framework;
|
||||
using Orchard.Extensions;
|
||||
using Orchard.Utility.Extensions;
|
||||
|
||||
namespace Orchard.Tests.Utility.Extensions {
|
||||
[TestFixture]
|
||||
|
@@ -3,12 +3,12 @@ using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
using Orchard.Extensions;
|
||||
using Orchard.Localization;
|
||||
using Orchard.Media.Models;
|
||||
using Orchard.Media.Services;
|
||||
using Orchard.Media.ViewModels;
|
||||
using Orchard.UI.Notify;
|
||||
using Orchard.Utility.Extensions;
|
||||
|
||||
namespace Orchard.Media.Controllers {
|
||||
[ValidateInput(false)]
|
||||
|
@@ -14,5 +14,9 @@ namespace Orchard.Utility.Extensions {
|
||||
|
||||
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());
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user