Fixed #409: deleted pages are not displayed in RSS when category is specified (categories of a deleted page are unknown).

This commit is contained in:
Dario Solera 2009-11-28 14:04:19 +00:00
parent 90c0be4082
commit 5cb2898572
2 changed files with 5 additions and 2 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 // 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.436")] [assembly: AssemblyVersion("3.0.1.437")]
[assembly: AssemblyFileVersion("3.0.1.436")] [assembly: AssemblyFileVersion("3.0.1.437")]

View file

@ -278,6 +278,9 @@ namespace ScrewTurn.Wiki {
// Check namespace // Check namespace
if(p != null && NameTools.GetNamespace(p.FullName) != currentNamespace) continue; if(p != null && NameTools.GetNamespace(p.FullName) != currentNamespace) continue;
// Skip deleted pages as their category binding is unknown
if(p == null && useCat) continue;
// Write the item element // Write the item element
rss.WriteStartElement("item"); rss.WriteStartElement("item");
rss.WriteStartElement("title"); rss.WriteStartElement("title");