mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-18 21:34:28 -04:00
Don't use EnvironmentProvider.IsProduction for services.
This commit is contained in:
@@ -14,7 +14,7 @@ namespace NzbDrone.Web.Helpers
|
|||||||
static HtmlIncludeExtentions()
|
static HtmlIncludeExtentions()
|
||||||
{
|
{
|
||||||
versionString = new EnviromentProvider().Version.ToString().Replace('.', '_');
|
versionString = new EnviromentProvider().Version.ToString().Replace('.', '_');
|
||||||
isProduction = EnviromentProvider.IsProduction;
|
isProduction = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MvcHtmlString IncludeScript(this HtmlHelper helper, string filename)
|
public static MvcHtmlString IncludeScript(this HtmlHelper helper, string filename)
|
||||||
|
|||||||
@@ -14,10 +14,6 @@
|
|||||||
ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title);
|
ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title);
|
||||||
}
|
}
|
||||||
<title>@ViewBag.Title</title>
|
<title>@ViewBag.Title</title>
|
||||||
@if (!EnviromentProvider.IsProduction)
|
|
||||||
{
|
|
||||||
@MvcMiniProfiler.MiniProfiler.RenderIncludes()
|
|
||||||
}
|
|
||||||
@RenderSection("HeaderContent", required: false)
|
@RenderSection("HeaderContent", required: false)
|
||||||
}
|
}
|
||||||
<div id="centered">
|
<div id="centered">
|
||||||
|
|||||||
Reference in New Issue
Block a user