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