Skip to content

Commit e712402

Browse files
committed
Links in the Whats New Module are now correctly rewritten
1 parent 406faad commit e712402

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

yaf_dnn/Installation/YAF.DotNetNuke.Module.dnn

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="YetAnotherForumDotNet" type="Module" version="02.10.05501">
3+
<package name="YetAnotherForumDotNet" type="Module" version="02.10.05505">
44
<friendlyName>YAF.NET Forums</friendlyName>
55
<description>
66
&lt;strong&gt;YetAnotherForum.NET&lt;/strong&gt; as DNN Module. Yet Another Forum.NET (YAF) is an open source ASP.NET forum system.&lt;br /&gt;
@@ -379,7 +379,7 @@
379379
</component>
380380
</components>
381381
</package>
382-
<package name="YAF.WhatsNew" type="Module" version="02.10.05501">
382+
<package name="YAF.WhatsNew" type="Module" version="02.10.05505">
383383
<friendlyName>YAF.NET Forums What's New</friendlyName>
384384
<description>
385385
&lt;p&gt;This Module displays the Latest Posts from a &lt;strong&gt;YetAnotherForum.NET&lt;/strong&gt; Module. Based on the Current Users Authorization Level. You can define Which Forum should been used, and how many Posts should displayed.

yaf_dnn/YafDnnWhatsNew.ascx.cs

+4-3
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ namespace YAF.DotNetNuke
4646
using YAF.Classes.Data;
4747
using YAF.Controls;
4848
using YAF.Core;
49+
using YAF.Core.Helpers;
4950
using YAF.DotNetNuke.Components.Controllers;
5051
using YAF.DotNetNuke.Components.Utils;
5152
using YAF.Types.Extensions;
@@ -104,7 +105,7 @@ public partial class YafDnnWhatsNew : PortalModuleBase
104105
#endregion
105106

106107
#region Methods
107-
108+
/*
108109
/// <summary>
109110
/// The clean string for url.
110111
/// </summary>
@@ -137,7 +138,7 @@ protected static string CleanStringForURL(string inputString)
137138
}
138139
139140
return sb.ToString();
140-
}
141+
}*/
141142

142143
/// <summary>
143144
/// The latest posts_ item data bound.
@@ -445,7 +446,7 @@ private string ProcessItem(RepeaterItemEventArgs e)
445446
"~/tabid/{0}/g/posts/m/{1}/{2}.aspx#post{1}".FormatWith(
446447
this.yafTabId,
447448
currentRow["LastMessageID"],
448-
YafContext.Current.Get<IBadWordReplace>().Replace(currentRow["Topic"].ToString())));
449+
UrlRewriteHelper.CleanStringForURL(YafContext.Current.Get<IBadWordReplace>().Replace(currentRow["Topic"].ToString()))));
449450
}
450451

451452
// Render [LASTPOSTICON]

0 commit comments

Comments
 (0)