Skip to content

Commit

Permalink
Replaced IPortalSettings initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
valadas committed Oct 16, 2020
1 parent 0d18e3c commit 03c4a3e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CreateModule.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ namespace Dnn.Module.ModuleCreator
using DotNetNuke.Entities.Content.Taxonomy;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Definitions;
using DotNetNuke.Entities.Portals;
using DotNetNuke.Security;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Installer.Packages;
Expand All @@ -40,7 +41,7 @@ public CreateModule()
this.navigationManager = this.DependencyProvider.GetRequiredService<INavigationManager>();
this.hostSettingsService = this.DependencyProvider.GetRequiredService<IHostSettingsService>();
this.applicationStatusInfo = this.DependencyProvider.GetRequiredService<IApplicationStatusInfo>();
this.portalSettings = this.DependencyProvider.GetRequiredService<IPortalSettings>();
this.portalSettings = PortalController.Instance.GetCurrentSettings();
}

/// <inheritdoc/>
Expand Down
3 changes: 2 additions & 1 deletion viewsource.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace Dnn.Module.ModuleCreator
using DotNetNuke.Entities.Controllers;
using DotNetNuke.Entities.Modules;
using DotNetNuke.Entities.Modules.Definitions;
using DotNetNuke.Entities.Portals;
using DotNetNuke.Framework;
using DotNetNuke.Security;
using DotNetNuke.Services.Exceptions;
Expand All @@ -40,7 +41,7 @@ public ViewSource()
{
this.navigationManager = this.DependencyProvider.GetRequiredService<INavigationManager>();
this.applicationStatusInfo = this.DependencyProvider.GetRequiredService<IApplicationStatusInfo>();
this.portalSettings = this.DependencyProvider.GetRequiredService<IPortalSettings>();
this.portalSettings = PortalController.Instance.GetCurrentSettings();
}

/// <summary>
Expand Down

0 comments on commit 03c4a3e

Please sign in to comment.