Fixes ServerVariablesParser to have a proper event declared! :P
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -107,3 +107,4 @@ src/Umbraco.Web.UI/[Cc]onfig/appSettings.config
|
||||
src/Umbraco.Web.UI/[Cc]onfig/connectionStrings.config
|
||||
src/Umbraco.Web.UI/umbraco/plugins/*
|
||||
src/Umbraco.Web.UI/umbraco/js/init.js
|
||||
build/ApiDocs/*
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace Umbraco.Web.UI.JavaScript
|
||||
/// <summary>
|
||||
/// Could allow developers to add custom variables on startup
|
||||
/// </summary>
|
||||
public static EventHandler<Dictionary<string, object>> Parsing;
|
||||
public static event EventHandler<Dictionary<string, object>> Parsing;
|
||||
|
||||
internal const string Token = "##Variables##";
|
||||
|
||||
@@ -24,7 +24,8 @@ namespace Umbraco.Web.UI.JavaScript
|
||||
}
|
||||
|
||||
var json = JObject.FromObject(items);
|
||||
return vars.Replace(Token, json.ToString());
|
||||
return vars.Replace(Token, json.ToString());
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user