mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Improved TokensFilter.
Since null is an allowed value anyway.
This commit is contained in:
@@ -10,4 +10,4 @@ Features:
|
||||
Name: Dashboards
|
||||
Description: The Dashboards module enables administrators to customize the dashboard screen of the administration UI of the application.
|
||||
Category: Admin
|
||||
Dependencies: Orchard.Layouts
|
||||
Dependencies: Orchard.Layouts, Orchard.Layouts.Tokens
|
||||
@@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Orchard.Environment.Extensions;
|
||||
using Orchard.Services;
|
||||
using Orchard.Tokens;
|
||||
@@ -27,9 +26,7 @@ namespace Orchard.Layouts.Filters {
|
||||
return text;
|
||||
}
|
||||
|
||||
var data = new Dictionary<string, object>();
|
||||
|
||||
text = _tokenizer.Replace(text, data, new ReplaceOptions {Encoding = ReplaceOptions.NoEncode});
|
||||
text = _tokenizer.Replace(text, null, new ReplaceOptions {Encoding = ReplaceOptions.NoEncode});
|
||||
|
||||
return text;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user