mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-21 05:53:33 -07:00
fixed application path to support Application path (full IIS Server)
This commit is contained in:
parent
67fb2cf987
commit
bdc8abe0b6
2 changed files with 2 additions and 37 deletions
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using System.Web.Hosting;
|
||||
using Ninject;
|
||||
using NLog.Config;
|
||||
using NLog.Targets;
|
||||
|
@ -99,11 +100,7 @@ namespace NzbDrone.Core
|
|||
{
|
||||
get
|
||||
{
|
||||
if (HttpContext.Current != null)
|
||||
{
|
||||
return new DirectoryInfo(HttpContext.Current.Server.MapPath("\\")).FullName;
|
||||
}
|
||||
return Directory.GetCurrentDirectory();
|
||||
return HostingEnvironment.ApplicationPhysicalPath;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue