Fixed bug in Print.aspx.cs.
This commit is contained in:
parent
96f6589cfd
commit
cff84ba163
2 changed files with 5 additions and 3 deletions
|
@ -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(@"<h1 class=""pagetitle"">");
|
||||
sb.Append(title);
|
||||
sb.Append("</h1>");
|
||||
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue