Skip to content

Commit

Permalink
Fixes ServerVariablesParser to have a proper event declared! :P
Browse files Browse the repository at this point in the history
  • Loading branch information
Shazwazza committed Jan 28, 2014
1 parent 10a4eb3 commit 7de1b2d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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/*
5 changes: 3 additions & 2 deletions src/Umbraco.Web/UI/JavaScript/ServerVariablesParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public sealed class ServerVariablesParser
/// <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##";

Expand All @@ -24,7 +24,8 @@ internal static string Parse(Dictionary<string, object> items)
}

var json = JObject.FromObject(items);
return vars.Replace(Token, json.ToString());
return vars.Replace(Token, json.ToString());

}

}
Expand Down

0 comments on commit 7de1b2d

Please sign in to comment.