Replace tabs for spaces in views, css and cs files.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-11-24 16:10:08 -08:00
parent b84a4f74e8
commit d94666aac0
58 changed files with 676 additions and 679 deletions

View File

@@ -33,4 +33,3 @@
@Html.AntiForgeryTokenOrchard() @Html.AntiForgeryTokenOrchard()
</fieldset> </fieldset>
} }

View File

@@ -10,7 +10,6 @@ using Orchard.Packaging.ViewModels;
using Orchard.Themes; using Orchard.Themes;
using Orchard.UI.Admin; using Orchard.UI.Admin;
using Orchard.UI.Notify; using Orchard.UI.Notify;
using System.Xml.XPath;
namespace Orchard.Packaging.Controllers { namespace Orchard.Packaging.Controllers {
[OrchardFeature("Gallery")] [OrchardFeature("Gallery")]
@@ -34,7 +33,7 @@ namespace Orchard.Packaging.Controllers {
T = NullLocalizer.Instance; T = NullLocalizer.Instance;
} }
Localizer T { get; set; } public Localizer T { get; set; }
public ActionResult Sources() { public ActionResult Sources() {
return View(new PackagingSourcesViewModel { return View(new PackagingSourcesViewModel {

View File

@@ -18,7 +18,6 @@
</fieldset> </fieldset>
} }
@if (Model.Extensions.Count() > 0) { @if (Model.Extensions.Count() > 0) {
<ul class="contentItems"> <ul class="contentItems">
@foreach (var item in Model.Extensions) { @foreach (var item in Model.Extensions) {

View File

@@ -211,7 +211,7 @@ namespace Orchard.Users.Controllers {
protected override void OnActionExecuting(ActionExecutingContext filterContext) { protected override void OnActionExecuting(ActionExecutingContext filterContext) {
if (filterContext.HttpContext.User.Identity is WindowsIdentity) { if (filterContext.HttpContext.User.Identity is WindowsIdentity) {
throw new InvalidOperationException("Windows authentication is not supported."); throw new InvalidOperationException(T("Windows authentication is not supported.").ToString());
} }
} }

View File

@@ -6,6 +6,7 @@ using System.Text;
using System.Web.Security; using System.Web.Security;
using System.Xml.Linq; using System.Xml.Linq;
using JetBrains.Annotations; using JetBrains.Annotations;
using Orchard.Localization;
using Orchard.Logging; using Orchard.Logging;
using Orchard.ContentManagement; using Orchard.ContentManagement;
using Orchard.Security; using Orchard.Security;
@@ -27,9 +28,11 @@ namespace Orchard.Users.Services {
_messageManager = messageManager; _messageManager = messageManager;
_userEventHandlers = userEventHandlers; _userEventHandlers = userEventHandlers;
Logger = NullLogger.Instance; Logger = NullLogger.Instance;
T = NullLocalizer.Instance;
} }
public ILogger Logger { get; set; } public ILogger Logger { get; set; }
public Localizer T { get; set; }
public MembershipSettings GetSettings() { public MembershipSettings GetSettings() {
var settings = new MembershipSettings(); var settings = new MembershipSettings();
@@ -179,7 +182,7 @@ namespace Orchard.Users.Services {
SetPasswordEncrypted(partRecord, password); SetPasswordEncrypted(partRecord, password);
break; break;
default: default:
throw new ApplicationException("Unexpected password format value"); throw new ApplicationException(T("Unexpected password format value").ToString());
} }
} }

View File

@@ -1,7 +1,5 @@
using System; using System;
using System.Web.Mvc; using System.Web.Mvc;
using Autofac;
using Autofac.Integration.Web;
namespace Orchard.Mvc.Html { namespace Orchard.Mvc.Html {
public static class ContainerExtensions { public static class ContainerExtensions {

View File

@@ -6,7 +6,6 @@ using System.Globalization;
using System.Linq; using System.Linq;
using System.Web; using System.Web;
using Autofac.Features.Metadata; using Autofac.Features.Metadata;
using Orchard.DisplayManagement.Descriptors;
using Orchard.Environment.Extensions.Models; using Orchard.Environment.Extensions.Models;
namespace Orchard.UI.Resources { namespace Orchard.UI.Resources {