diff --git a/src/Orchard.Web/Core/Common/Views/CommonMetadataOwner.cshtml b/src/Orchard.Web/Core/Common/Views/CommonMetadataOwner.cshtml index e40a1cf2a..ba9029172 100644 --- a/src/Orchard.Web/Core/Common/Views/CommonMetadataOwner.cshtml +++ b/src/Orchard.Web/Core/Common/Views/CommonMetadataOwner.cshtml @@ -11,4 +11,4 @@ // owner isn't really who last modified this, is it? IUser owner = commonPart.As() == null ? null : commonPart.As().Owner; } -@T("By {0}", owner == null ? "" : owner.UserName) \ No newline at end of file +@T("By {0}", owner == null ? T("unknown").ToString() : Convert.ToString(Html.ItemDisplayText(owner))) \ No newline at end of file diff --git a/src/Orchard.Web/Core/Shapes/Views/User.cshtml b/src/Orchard.Web/Core/Shapes/Views/User.cshtml index 5397b3862..8770c87ba 100644 --- a/src/Orchard.Web/Core/Shapes/Views/User.cshtml +++ b/src/Orchard.Web/Core/Shapes/Views/User.cshtml @@ -3,7 +3,7 @@
@if (WorkContext.CurrentUser != null) {