Removes UseDirectoryUrls, have better defaults for reserved paths, don't ship with values in them just have them blank

This commit is contained in:
Shannon
2019-01-29 23:58:43 +11:00
parent 1897c0f162
commit c0026d3c23
12 changed files with 53 additions and 129 deletions

View File

@@ -2,9 +2,17 @@
using System.Collections.Generic;
using Newtonsoft.Json.Linq;
namespace Umbraco.Web.UI.JavaScript
{
//fixme delete this when Models Builder is updated
public sealed class ServerVariablesParser : global::Umbraco.Web.JavaScript.ServerVariablesParser
{
}
}
namespace Umbraco.Web.JavaScript
{
public sealed class ServerVariablesParser
public class ServerVariablesParser
{
/// <summary>
@@ -19,10 +27,7 @@ namespace Umbraco.Web.JavaScript
var vars = Resources.ServerVariables;
//Raise event for developers to add custom variables
if (Parsing != null)
{
Parsing(null, items);
}
Parsing?.Invoke(null, items);
var json = JObject.FromObject(items);
return vars.Replace(Token, json.ToString());