Merge with 4.11.2

This commit is contained in:
Sebastiaan Janssen
2012-12-20 09:43:09 -01:00
6 changed files with 14 additions and 4 deletions

View File

@@ -66,8 +66,7 @@ namespace Umbraco.Core.Macros
}
}
var macroAlias = attributes["macroalias"] ?? attributes["alias"];
var macroAlias = attributes.ContainsKey("macroalias") ? attributes["macroalias"] : attributes["alias"];
//call the callback now that we have the macro parsed
macroFoundCallback(macroAlias, attributes);

View File

@@ -23,6 +23,7 @@
<key alias="notify">Notifications</key>
<key alias="protect">Public access</key>
<key alias="publish">Publish</key>
<key alias="unpublish">Unpublish</key>
<key alias="refreshNode">Reload nodes</key>
<key alias="republish">Republish entire site</key>
<key alias="rights">Permissions</key>
@@ -779,6 +780,7 @@ To manage your website, simply open the umbraco back office and start adding con
<key alias="xsltPermissionErrorText">Xslt could not be saved, check file permissions</key>
<key alias="xsltSavedHeader">Xslt saved</key>
<key alias="xsltSavedText">No errors in xslt</key>
<key alias="contentUnpublished">Content unpublished</key>
</area>
<area alias="stylesheet">
<key alias="aliasHelp">Uses CSS syntax ex: h1, .redHeader, .blueTex</key>

View File

@@ -203,6 +203,8 @@ namespace Umbraco.Web.Routing
// expected content anymore and the alternate template does not apply.
_publishedContentRequest.AlternateTemplateAlias = _umbracoContext.HttpContext.Request["altTemplate"];
_umbracoContext.HttpContext.Trace.Write(string.Format("test {0}", _publishedContentRequest.AlternateTemplateAlias));
// handle "not found", follow internal redirects, validate access, template
// because these might loop, we have to have some sort of infinite loop detection
int i = 0, j = 0;

View File

@@ -362,6 +362,9 @@ namespace umbraco.cms.presentation
library.UnPublishSingleNode(_document.Id);
Current.ClientTools.SyncTree(_document.Path, true);
ClientTools.ShowSpeechBubble(speechBubbleIcon.success, ui.Text("unpublish"), ui.Text("speechBubbles", "contentUnpublished"));
//newPublishStatus.Text = "0";
}

View File

@@ -260,6 +260,10 @@ namespace umbraco.BusinessLogic
LoadXml(doc =>
{
var el = doc.Root.Elements("add").SingleOrDefault(x => x.Attribute("alias").Value == alias && x.Attribute("application").Value == applicationAlias);
if (el == null)
{
doc.Root.Add(new XElement("add",
new XAttribute("silent", silent),
new XAttribute("initialize", initialize),
@@ -272,6 +276,7 @@ namespace umbraco.BusinessLogic
new XAttribute("assembly", assemblyName),
new XAttribute("type", type),
new XAttribute("action", string.IsNullOrEmpty(action) ? "" : action)));
}
}, true);
}

View File

@@ -86,8 +86,7 @@ namespace umbraco.BusinessLogic
if (UmbracoSettings.DisabledLogTypes != null &&
UmbracoSettings.DisabledLogTypes.SelectSingleNode(String.Format("//logTypeAlias [. = '{0}']", type.ToString().ToLower())) == null)
{
if (comment.Length > 3999)
if (comment != null && comment.Length > 3999)
comment = comment.Substring(0, 3955) + "...";
if (UmbracoSettings.EnableAsyncLogging)