Fixed issue with Paths-integers being converted using local culture. (#11180)
* Fixed issue with Paths-integers being converted using local culture. * Align with the old implementation * Use int.TryParse insteaad of TryConvertTo when we do not want culture specific parsing * More fixes for cultures and fixed wrong test. Users should be part of all groups to have access * Fix casing for requested file * Force tests to not use NLS * try force tests to not use NLS * try force tests to not use NLS * Force tests on windows to run ICU * More fixes for invariant int parsing * Change key on actions/emptyRecycleBin, so the casing aligns with the view file, that is named emptyrecyclebin.html * Fixed casing issue * use Attempt to align with other code
This commit is contained in:
@@ -219,14 +219,14 @@ namespace Umbraco.Cms.Core.Models
|
||||
|
||||
private static string GetBinPath(UmbracoObjectTypes objectType)
|
||||
{
|
||||
var binPath = Constants.System.Root + ",";
|
||||
var binPath = Constants.System.RootString + ",";
|
||||
switch (objectType)
|
||||
{
|
||||
case UmbracoObjectTypes.Document:
|
||||
binPath += Constants.System.RecycleBinContent;
|
||||
binPath += Constants.System.RecycleBinContentString;
|
||||
break;
|
||||
case UmbracoObjectTypes.Media:
|
||||
binPath += Constants.System.RecycleBinMedia;
|
||||
binPath += Constants.System.RecycleBinMediaString;
|
||||
break;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException(nameof(objectType));
|
||||
|
||||
Reference in New Issue
Block a user