Fixed and closed #423: {RecentChanges} now works correctly.
This commit is contained in:
parent
37951481e1
commit
ec33ba95df
2 changed files with 10 additions and 3 deletions
|
@ -16,5 +16,5 @@ using System.Reflection;
|
||||||
//
|
//
|
||||||
// You can specify all the values or you can default the Revision and Build Numbers
|
// You can specify all the values or you can default the Revision and Build Numbers
|
||||||
// by using the '*' as shown below:
|
// by using the '*' as shown below:
|
||||||
[assembly: AssemblyVersion("3.0.1.434")]
|
[assembly: AssemblyVersion("3.0.1.435")]
|
||||||
[assembly: AssemblyFileVersion("3.0.1.434")]
|
[assembly: AssemblyFileVersion("3.0.1.435")]
|
||||||
|
|
|
@ -933,11 +933,18 @@ namespace ScrewTurn.Wiki {
|
||||||
// Sort by descending date/time
|
// Sort by descending date/time
|
||||||
allChanges.Reverse();
|
allChanges.Reverse();
|
||||||
|
|
||||||
|
Func<NamespaceInfo, string> getName = (ns) => {
|
||||||
|
if(ns == null) return null;
|
||||||
|
else return ns.Name;
|
||||||
|
};
|
||||||
|
|
||||||
|
string currentNamespaceName = getName(currentNamespace);
|
||||||
|
|
||||||
// Filter by namespace
|
// Filter by namespace
|
||||||
if(!allNamespaces) {
|
if(!allNamespaces) {
|
||||||
allChanges.RemoveAll((c) => {
|
allChanges.RemoveAll((c) => {
|
||||||
NamespaceInfo ns = Pages.FindNamespace(NameTools.GetNamespace(c.Page));
|
NamespaceInfo ns = Pages.FindNamespace(NameTools.GetNamespace(c.Page));
|
||||||
return ns != currentNamespace;
|
return getName(ns) != currentNamespaceName;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue