Rename IsNoWebContent to NoWebContent

pull/2601/head
Mark Monteiro 5 years ago
parent 547f248a62
commit 4102e3afd0

@ -38,7 +38,7 @@ namespace Emby.Server.Implementations.EntryPoints
return Task.CompletedTask; return Task.CompletedTask;
} }
if (_appHost.Resolve<IConfiguration>().IsNoWebContent()) if (_appHost.Resolve<IConfiguration>().NoWebContent())
{ {
BrowserLauncher.OpenSwaggerPage(_appHost); BrowserLauncher.OpenSwaggerPage(_appHost);
} }

@ -287,7 +287,8 @@ namespace Jellyfin.Server
}) })
.UseStartup<Startup>(); .UseStartup<Startup>();
if (!startupConfig.IsNoWebContent()) // Set up static content hosting unless it has been disabled via config
if (!startupConfig.NoWebContent())
{ {
// Fail startup if the web content does not exist // Fail startup if the web content does not exist
if (!Directory.Exists(appHost.ContentRoot) || !Directory.GetFiles(appHost.ContentRoot).Any()) if (!Directory.Exists(appHost.ContentRoot) || !Directory.GetFiles(appHost.ContentRoot).Any())

@ -30,7 +30,7 @@ namespace MediaBrowser.Controller.Extensions
/// <param name="configuration">The configuration to retrieve the value from.</param> /// <param name="configuration">The configuration to retrieve the value from.</param>
/// <returns>The parsed config value.</returns> /// <returns>The parsed config value.</returns>
/// <exception cref="FormatException">The config value is not a valid bool string. See <see cref="bool.Parse(string)"/>.</exception> /// <exception cref="FormatException">The config value is not a valid bool string. See <see cref="bool.Parse(string)"/>.</exception>
public static bool IsNoWebContent(this IConfiguration configuration) public static bool NoWebContent(this IConfiguration configuration)
=> configuration.GetValue<bool>(NoWebContentKey); => configuration.GetValue<bool>(NoWebContentKey);
/// <summary> /// <summary>

Loading…
Cancel
Save