Skip to content

Commit 5fdf148

Browse files
committed
fixed avatar urls
1 parent 37b7c79 commit 5fdf148

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

yaf_dnn/Components/Utils/ProfileSyncronizer.cs

+8-1
Original file line numberDiff line numberDiff line change
@@ -261,10 +261,17 @@ private static void SyncYafProfile(int yafUserId, YafUserProfile yafUserProfile,
261261
/// <param name="boardSettings">The board settings.</param>
262262
private static void SaveDnnAvatar(string fileId, int yafUserId, Guid portalGUID, YafBoardSettings boardSettings)
263263
{
264+
var basePath = YafBuildLink.GetBasePath(boardSettings);
265+
266+
if (!basePath.EndsWith("/"))
267+
{
268+
basePath = "{0}/".FormatWith(basePath);
269+
}
270+
264271
LegacyDb.user_saveavatar(
265272
yafUserId,
266273
"{0}LinkClick.aspx?fileticket={1}".FormatWith(
267-
YafBuildLink.GetBasePath(boardSettings),
274+
basePath,
268275
UrlUtils.EncryptParameter(fileId, portalGUID.ToString())),
269276
null,
270277
null);

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.12.05606">
3+
<package name="YetAnotherForumDotNet" type="Module" version="02.12.05607">
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.12.05606">
382+
<package name="YAF.WhatsNew" type="Module" version="02.12.05607">
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.

0 commit comments

Comments
 (0)