mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#18677: Fixing BodyPart driver with MediaPickerField
Work Item: 18677 --HG-- branch : 1.4.x
This commit is contained in:
@@ -120,10 +120,16 @@ namespace Orchard.Core.Common.Drivers {
|
||||
private void Add(string segment) {
|
||||
if (string.IsNullOrEmpty(segment))
|
||||
return;
|
||||
if (string.IsNullOrEmpty(_path))
|
||||
|
||||
if (string.IsNullOrEmpty(_path)) {
|
||||
_path = segment;
|
||||
else
|
||||
}
|
||||
else if (segment.StartsWith("/")) {
|
||||
_path = _path + segment;
|
||||
}
|
||||
else {
|
||||
_path = _path + "/" + segment;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user