Skip to content

Commit 0216c04

Browse files
committed
Changed version numbers to 06.01.07
1 parent 1a6d5fc commit 0216c04

5 files changed

Lines changed: 24 additions & 16 deletions

File tree

2Sexy Content Razor/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,5 @@
3232
// You can specify all the values or you can default the Build and Revision Numbers
3333
// by using the '*' as shown below:
3434
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("6.1.6.0")]
36-
[assembly: AssemblyFileVersion("6.1.6.0")]
35+
[assembly: AssemblyVersion("6.1.7.0")]
36+
[assembly: AssemblyFileVersion("6.1.7.0")]

2sic_2SexyContent.dnn

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<dotnetnuke type="Package" version="5.0">
22
<packages>
3-
<package name="2SexyContent" type="Module" version="06.01.06">
3+
<package name="2SexyContent" type="Module" version="06.01.07">
44
<friendlyName> Content</friendlyName>
55
<description>2Sexy Content is a DotNetNuke Extension to create attractive and designed content. It solves the common problem, allowing the web designer to create designed templates for different content elements, so that the user must only fill in fields and receive a perfectly designed and animated output.</description>
66
<iconFile>icon.png</iconFile>
@@ -123,7 +123,7 @@
123123
<script type="UnInstall">
124124
<path>SqlDataProvider</path>
125125
<name>Uninstall.SqlDataProvider</name>
126-
<version>06.01.06</version>
126+
<version>06.01.07</version>
127127
</script>
128128
</scripts>
129129
</component>
@@ -574,7 +574,7 @@
574574
</components>
575575
</package>
576576

577-
<package name="2SexyContent-App" type="Module" version="06.01.06">
577+
<package name="2SexyContent-App" type="Module" version="06.01.07">
578578
<friendlyName> App</friendlyName>
579579
<description>2Sexy Content App is an extension that allows to insert a 2SexyContent app.</description>
580580
<iconFile>icon-app.png</iconFile>

Js/2sxc.api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ var $2sxc = function (id) {
9999

100100
$2sxc._controllers = {};
101101
$2sxc.metaName = "The 2SexyContent Controller object";
102-
$2sxc.metaVersion = "06.01.06";
102+
$2sxc.metaVersion = "06.01.07";
103103
$2sxc.beta = {};
104104
$2sxc._data = {};

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@
2929
//
3030
// You can specify all the values or you can default the Revision and Build Numbers
3131
// by using the '*' as shown below:
32-
[assembly: AssemblyVersion("6.1.6.0")]
33-
[assembly: AssemblyFileVersion("6.1.6.0")]
32+
[assembly: AssemblyVersion("6.1.7.0")]
33+
[assembly: AssemblyFileVersion("6.1.7.0")]

SexyContent/SexyContent.cs

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
using System.Data.Objects;
22
using DotNetNuke.Common;
3+
using DotNetNuke.Common.Internal;
34
using DotNetNuke.Common.Utilities;
45
using DotNetNuke.Entities.Modules;
56
using DotNetNuke.Entities.Portals;
7+
using DotNetNuke.Entities.Portals.Internal;
8+
using DotNetNuke.Entities.Tabs.Internal;
69
using DotNetNuke.Security;
710
using DotNetNuke.Security.Permissions;
811
using DotNetNuke.Security.Roles;
@@ -39,7 +42,7 @@ public class SexyContent : ModuleSearchBase, IUpgradeable
3942
{
4043
#region Constants
4144

42-
public const string ModuleVersion = "06.01.06";
45+
public const string ModuleVersion = "06.01.07";
4346
public const string TemplateID = "TemplateID";
4447
public const string ContentGroupIDString = "ContentGroupID";
4548
public const string AppIDString = "AppId";
@@ -1266,22 +1269,27 @@ public static string ResolveHyperlinkValues(string value, PortalSettings ownerPo
12661269
resultString = fileManager.GetUrl(fileInfo) + urlParams;
12671270
break;
12681271
case "page":
1269-
var portalId = ownerPortalSettings.PortalId;
1270-
var tabInfo = tabController.GetTab(id, portalId, false);
1272+
var portalSettings = PortalSettings.Current;
1273+
1274+
// Get full PortalSettings (with portal alias) if module sharing is active
1275+
if (PortalSettings.Current != null && PortalSettings.Current.PortalId != ownerPortalSettings.PortalId)
1276+
{
1277+
var portalAlias = ownerPortalSettings.PrimaryAlias ?? TestablePortalAliasController.Instance.GetPortalAliasesByPortalId(ownerPortalSettings.PortalId).First();
1278+
portalSettings = new PortalSettings(id, portalAlias);
1279+
}
1280+
var tabInfo = tabController.GetTab(id, ownerPortalSettings.PortalId, false);
12711281
if (tabInfo != null)
12721282
{
1273-
//tabInfo.IsDefaultLanguage &&
12741283
if (tabInfo.CultureCode != "" && tabInfo.CultureCode != PortalSettings.Current.CultureCode)
12751284
{
1276-
var cultureTabInfo = tabController.GetTabByCulture(tabInfo.TabID, tabInfo.PortalID,
1277-
LocaleController.Instance.GetLocale(
1278-
PortalSettings.Current.CultureCode));
1285+
var cultureTabInfo = tabController.GetTabByCulture(tabInfo.TabID, tabInfo.PortalID, LocaleController.Instance.GetLocale(PortalSettings.Current.CultureCode));
12791286

12801287
if (cultureTabInfo != null)
12811288
tabInfo = cultureTabInfo;
12821289
}
12831290

1284-
resultString = Globals.NavigateURL(tabInfo.TabID, ownerPortalSettings, "", new string[] {}) + urlParams;
1291+
// Exception in AdvancedURLProvider because ownerPortalSettings.PortalAlias is null
1292+
resultString = Globals.NavigateURL(tabInfo.TabID, portalSettings, "", new string[] { }) + urlParams;
12851293
}
12861294
break;
12871295
}

0 commit comments

Comments
 (0)