Fixed bug in Print.aspx.cs.

This commit is contained in:
Dario Solera 2010-02-16 06:24:28 +00:00
parent 96f6589cfd
commit cff84ba163
2 changed files with 5 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 // 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.2.500")] [assembly: AssemblyVersion("3.0.2.501")]
[assembly: AssemblyFileVersion("3.0.2.500")] [assembly: AssemblyFileVersion("3.0.2.501")]

View file

@ -56,6 +56,8 @@ namespace ScrewTurn.Wiki {
(from c in Pages.GetCategoriesForPage(page) (from c in Pages.GetCategoriesForPage(page)
select NameTools.GetLocalName(c.FullName)).ToArray(); select NameTools.GetLocalName(c.FullName)).ToArray();
UserInfo user = Users.FindUser(content.User);
sb.Append(@"<h1 class=""pagetitle"">"); sb.Append(@"<h1 class=""pagetitle"">");
sb.Append(title); sb.Append(title);
sb.Append("</h1>"); sb.Append("</h1>");
@ -63,7 +65,7 @@ namespace ScrewTurn.Wiki {
Properties.Messages.ModifiedOn, Properties.Messages.ModifiedOn,
Preferences.AlignWithTimezone(content.LastModified).ToString(Settings.DateTimeFormat), Preferences.AlignWithTimezone(content.LastModified).ToString(Settings.DateTimeFormat),
Properties.Messages.By, Properties.Messages.By,
Users.GetDisplayName(Users.FindUser(content.User)), user != null ? Users.GetDisplayName(user) : content.User,
Properties.Messages.CategorizedAs, Properties.Messages.CategorizedAs,
categories.Length == 0 ? Properties.Messages.Uncategorized : string.Join(", ", categories)); categories.Length == 0 ? Properties.Messages.Uncategorized : string.Join(", ", categories));
sb.Append(Content.GetFormattedPageContent(page, true)); sb.Append(Content.GetFormattedPageContent(page, true));