From 5cb28985720baf1053c95eae0b957e9e5f551c7f Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Sat, 28 Nov 2009 14:04:19 +0000 Subject: [PATCH] Fixed #409: deleted pages are not displayed in RSS when category is specified (categories of a deleted page are unknown). --- AssemblyVersion.cs | 4 ++-- WebApplication/RSS.aspx.cs | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index 8dcf681..b9ad570 100644 --- a/AssemblyVersion.cs +++ b/AssemblyVersion.cs @@ -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.436")] -[assembly: AssemblyFileVersion("3.0.1.436")] +[assembly: AssemblyVersion("3.0.1.437")] +[assembly: AssemblyFileVersion("3.0.1.437")] diff --git a/WebApplication/RSS.aspx.cs b/WebApplication/RSS.aspx.cs index c2bca8f..377ad46 100644 --- a/WebApplication/RSS.aspx.cs +++ b/WebApplication/RSS.aspx.cs @@ -278,6 +278,9 @@ namespace ScrewTurn.Wiki { // Check namespace 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 rss.WriteStartElement("item"); rss.WriteStartElement("title");