Fixing typo/language

This commit is contained in:
Lombiq
2015-08-11 02:04:57 +02:00
committed by Benedek Farkas
parent b206a656e8
commit 06e4d2f7f8
2 changed files with 3 additions and 3 deletions

View File

@@ -7,7 +7,7 @@ using Orchard.Localization;
namespace Orchard.Email.Drivers { namespace Orchard.Email.Drivers {
// We define a specific driver instead of using a TemplateFilterForRecord, because we need the model to be the part and not the record. // We define a specific driver instead of using a TemplateFilterForRecord, because we need the model to be the part and not the record.
// Thus the encryption/decryption will be done when accessing the part's property // Thus the encryption/decryption will be done when accessing the part's property.
public class SmtpSettingsPartDriver : ContentPartDriver<SmtpSettingsPart> { public class SmtpSettingsPartDriver : ContentPartDriver<SmtpSettingsPart> {
private const string TemplateName = "Parts/SmtpSettings"; private const string TemplateName = "Parts/SmtpSettings";
@@ -31,7 +31,7 @@ namespace Orchard.Email.Drivers {
var previousPassword = part.Password; var previousPassword = part.Password;
updater.TryUpdateModel(part, Prefix, null, null); updater.TryUpdateModel(part, Prefix, null, null);
// restore password if the input is empty, meaning it has not been reseted // Restore password if the input is empty, meaning that it has not been reset.
if (string.IsNullOrEmpty(part.Password)) { if (string.IsNullOrEmpty(part.Password)) {
part.Password = previousPassword; part.Password = previousPassword;
} }

View File

@@ -2,7 +2,7 @@
namespace Orchard.Security { namespace Orchard.Security {
/// <summary> /// <summary>
/// Applied on a Controller or an Action, will prevent any action from being filtered by AccessFrontEnd permssion /// Applied on a Controller or an Action, it will prevent any action from being filtered by the AccessFrontEnd permission.
/// </summary> /// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
public class AlwaysAccessibleAttribute : Attribute { public class AlwaysAccessibleAttribute : Attribute {