Merge remote-tracking branch 'origin/dev-v7' into 7.4.0

This commit is contained in:
Shannon
2016-01-06 12:01:12 +01:00
7 changed files with 7 additions and 12 deletions

View File

@@ -75,7 +75,7 @@ namespace Umbraco.Core.Media.Exif
{
if (items.ContainsKey (key))
items.Remove (key);
if (key == ExifTag.WindowsTitle || key == ExifTag.WindowsTitle || key == ExifTag.WindowsComment || key == ExifTag.WindowsAuthor || key == ExifTag.WindowsKeywords || key == ExifTag.WindowsSubject) {
if (key == ExifTag.WindowsTitle || key == ExifTag.WindowsComment || key == ExifTag.WindowsAuthor || key == ExifTag.WindowsKeywords || key == ExifTag.WindowsSubject) {
items.Add (key, new WindowsByteString (key, value));
} else {
items.Add (key, new ExifAscii (key, value, parent.Encoding));

View File

@@ -111,7 +111,7 @@ namespace Umbraco.Core.Services
member.RawPasswordValue = result.RawPasswordValue;
member.LastPasswordChangeDate = result.LastPasswordChangeDate;
member.UpdateDate = member.UpdateDate;
member.UpdateDate = result.UpdateDate;
}
/// <summary>

View File

@@ -266,7 +266,7 @@ namespace Umbraco.Core.Services
//should never be null but it could have been deleted by another thread.
user.RawPasswordValue = result.RawPasswordValue;
user.LastPasswordChangeDate = result.LastPasswordChangeDate;
user.UpdateDate = user.UpdateDate;
user.UpdateDate = result.UpdateDate;
}
}

View File

@@ -141,7 +141,7 @@ namespace Umbraco.Tests
public void GetAbsolutePathDecoded(string input, string expected)
{
var source = new Uri(input, UriKind.RelativeOrAbsolute);
var output = source.GetSafeAbsolutePathDecoded();
var output = source.GetAbsolutePathDecoded();
Assert.AreEqual(expected, output);
}

View File

@@ -55,7 +55,7 @@ namespace Umbraco.Web.Models
public bool HasFocalPoint()
{
return FocalPoint != null && FocalPoint.Top != 0.5m && FocalPoint.Top != 0.5m;
return FocalPoint != null && FocalPoint.Left != 0.5m && FocalPoint.Top != 0.5m;
}
public bool HasCrop(string alias)

View File

@@ -500,7 +500,7 @@ namespace umbraco.cms.presentation.Trees
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>
protected virtual void OnBeforeNodeRender(ref XmlTree sender, ref XmlTreeNode node, EventArgs e)
{
if (node != null && node != null)
if (sender != null && node != null)
{
if (BeforeNodeRender != null)
BeforeNodeRender(ref sender, ref node, e);

View File

@@ -164,13 +164,8 @@ namespace umbraco.editorControls.tinyMCE3
foreach (StylesheetProperty p in s.Properties)
{
if (styles != string.Empty)
{
styles += ";";
}
if (p.Alias.StartsWith("."))
styles += p.Text + "=" + p.Alias;
else
styles += p.Text + "=" + p.Alias;
styles += p.Text + "=" + p.Alias;
}
cssFiles += ",";