From cff84ba163843b0b0f908e47e829e2f2a231a6d8 Mon Sep 17 00:00:00 2001 From: Dario Solera Date: Tue, 16 Feb 2010 06:24:28 +0000 Subject: [PATCH] Fixed bug in Print.aspx.cs. --- AssemblyVersion.cs | 4 ++-- WebApplication/Print.aspx.cs | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/AssemblyVersion.cs b/AssemblyVersion.cs index fc1f927..e2e0896 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.2.500")] -[assembly: AssemblyFileVersion("3.0.2.500")] +[assembly: AssemblyVersion("3.0.2.501")] +[assembly: AssemblyFileVersion("3.0.2.501")] diff --git a/WebApplication/Print.aspx.cs b/WebApplication/Print.aspx.cs index 77b1f7f..8efb9d2 100644 --- a/WebApplication/Print.aspx.cs +++ b/WebApplication/Print.aspx.cs @@ -56,6 +56,8 @@ namespace ScrewTurn.Wiki { (from c in Pages.GetCategoriesForPage(page) select NameTools.GetLocalName(c.FullName)).ToArray(); + UserInfo user = Users.FindUser(content.User); + sb.Append(@"

"); sb.Append(title); sb.Append("

"); @@ -63,7 +65,7 @@ namespace ScrewTurn.Wiki { Properties.Messages.ModifiedOn, Preferences.AlignWithTimezone(content.LastModified).ToString(Settings.DateTimeFormat), Properties.Messages.By, - Users.GetDisplayName(Users.FindUser(content.User)), + user != null ? Users.GetDisplayName(user) : content.User, Properties.Messages.CategorizedAs, categories.Length == 0 ? Properties.Messages.Uncategorized : string.Join(", ", categories)); sb.Append(Content.GetFormattedPageContent(page, true));