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));