Lookup plugin lang / icons folders in a case insensitive way (#11985)
* Use lowercase lang folder name for packages lang files Use lowercase lang folder name for packages lang files to be consistent with Umbraco's casing * Case insensitive `lang` folder lookup * Comment grammar * Setup lower case appl_plugin icons folder path * Update Constants-SystemDirectories.cs * Check both casings for the AppPluginIcons path * Fixed spelling mistake + avoid multiple Exists checks * Add IsCaseSensitiveFileSystem to IHostingEnvironment * Add IsCaseSensitiveFileSystem to AspNetCoreHostingEnvironment * Undo last changes * Undo last changed * Add FileSystemUtility * Only perform second iconPath if OS is case sensitive * Undo changes * Undo changes * Remove filesystem utils file * Added HostingEnvironmentExtensions.cs * Use IsCaseSensitiveFileSystem extension method * Use the Umbraco.Extensions namespace * Simplify IsCaseSensitiveFileSystem * Better naming * Use PluginIcons * Remove unused using statement * Delete HostingEnvironmentExtensions.cs * Update IconService.cs * Comment clarity * Update src/Umbraco.Infrastructure/DependencyInjection/UmbracoBuilder.Services.cs Co-authored-by: Paul Johnson <pmj+github@ologn.co.uk> Co-authored-by: Paul Johnson <pmj+github@ologn.co.uk> Co-authored-by: Michael Latouche <michael@crossingpaths.be>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
using System;
|
||||
|
||||
namespace Umbraco.Cms.Core
|
||||
{
|
||||
public static partial class Constants
|
||||
@@ -42,7 +44,11 @@ namespace Umbraco.Cms.Core
|
||||
public const string Install = "~/install";
|
||||
|
||||
public const string AppPlugins = "/App_Plugins";
|
||||
public static string AppPluginIcons => "/Backoffice/Icons";
|
||||
|
||||
[Obsolete("Use PluginIcons instead")]
|
||||
public const string AppPluginIcons = "/Backoffice/Icons";
|
||||
public const string PluginIcons = "/backoffice/icons";
|
||||
|
||||
public const string CreatedPackages = "/created-packages";
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user