Fixed and closed #423: {RecentChanges} now works correctly.

This commit is contained in:
Dario Solera 2009-11-28 10:30:13 +00:00
parent 37951481e1
commit ec33ba95df
2 changed files with 10 additions and 3 deletions

View file

@ -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.1.434")]
[assembly: AssemblyFileVersion("3.0.1.434")]
[assembly: AssemblyVersion("3.0.1.435")]
[assembly: AssemblyFileVersion("3.0.1.435")]

View file

@ -933,11 +933,18 @@ namespace ScrewTurn.Wiki {
// Sort by descending date/time
allChanges.Reverse();
Func<NamespaceInfo, string> getName = (ns) => {
if(ns == null) return null;
else return ns.Name;
};
string currentNamespaceName = getName(currentNamespace);
// Filter by namespace
if(!allNamespaces) {
allChanges.RemoveAll((c) => {
NamespaceInfo ns = Pages.FindNamespace(NameTools.GetNamespace(c.Page));
return ns != currentNamespace;
return getName(ns) != currentNamespaceName;
});
}