mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Merge
--HG-- branch : 1.x
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Orchard.Indexing.Services
|
||||
UpdateIndex(indexName);
|
||||
}
|
||||
else {
|
||||
Services.Notifier.Warning(T("The index {0} could no ben rebuilt. It might already be in use, please try again later.", indexName));
|
||||
Services.Notifier.Warning(T("The index {0} could not be rebuilt. It might already be in use, please try again later.", indexName));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -36,6 +36,18 @@ namespace Orchard.UI.Navigation {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!string.IsNullOrWhiteSpace(x.Position) && !string.IsNullOrWhiteSpace(y.Position)) {
|
||||
var xPosSplitted = x.Position.Split('.').Where(ss => ss != "0").ToArray();
|
||||
var yPosSplitted = y.Position.Split('.').Where(ss => ss != "0").ToArray();
|
||||
var xParentPosition = xPosSplitted.Length > 0 ? string.Join(".", xPosSplitted.Take(xPosSplitted.Length - 1)) : null;
|
||||
var yParentPosition = yPosSplitted.Length > 0 ? string.Join(".", yPosSplitted.Take(yPosSplitted.Length - 1)) : null;
|
||||
|
||||
if (!string.Equals(xParentPosition, yParentPosition))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user