Fixed and closed #537: {RecentChanges} disabled in preview mode.
This commit is contained in:
parent
1ab4b3c9d9
commit
27af8f2caa
2 changed files with 11 additions and 10 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
|||
//
|
||||
// You can specify all the values or you can default the Revision and Build Numbers
|
||||
// by using the '*' as shown below:
|
||||
[assembly: AssemblyVersion("3.0.2.543")]
|
||||
[assembly: AssemblyFileVersion("3.0.2.543")]
|
||||
[assembly: AssemblyVersion("3.0.2.544")]
|
||||
[assembly: AssemblyFileVersion("3.0.2.544")]
|
||||
|
|
|
@ -2393,15 +2393,16 @@ namespace ScrewTurn.Wiki {
|
|||
|
||||
sb.Replace(SectionLinkTextPlaceHolder, Exchanger.ResourceExchanger.GetResource("LinkToThisSection"));
|
||||
|
||||
match = RecentChangesRegex.Match(sb.ToString());
|
||||
while(match.Success) {
|
||||
sb.Remove(match.Index, match.Length);
|
||||
string trimmedTag = match.Value.Trim('{', '}');
|
||||
// If current page is null, assume root namespace
|
||||
NamespaceInfo currentNamespace = null;
|
||||
if(current != null) currentNamespace = Pages.FindNamespace(NameTools.GetNamespace(current.FullName));
|
||||
sb.Insert(match.Index, BuildRecentChanges(currentNamespace, trimmedTag.EndsWith("(*)"), context, current));
|
||||
if(current != null) {
|
||||
match = RecentChangesRegex.Match(sb.ToString());
|
||||
while(match.Success) {
|
||||
sb.Remove(match.Index, match.Length);
|
||||
string trimmedTag = match.Value.Trim('{', '}');
|
||||
// If current page is null, assume root namespace
|
||||
NamespaceInfo currentNamespace = currentNamespace = Pages.FindNamespace(NameTools.GetNamespace(current.FullName));
|
||||
sb.Insert(match.Index, BuildRecentChanges(currentNamespace, trimmedTag.EndsWith("(*)"), context, current));
|
||||
match = RecentChangesRegex.Match(sb.ToString());
|
||||
}
|
||||
}
|
||||
|
||||
match = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue