Fix activity log rendering; closes #4208
This commit is contained in:
parent
0d0c595909
commit
48af9bced1
2 changed files with 26 additions and 18 deletions
|
@ -55,6 +55,11 @@ class ActivityLogTransformer extends BaseClientTransformer
|
|||
}
|
||||
|
||||
if (!is_array($value)) {
|
||||
// Perform some directory normalization at this point.
|
||||
if ($key === 'directory') {
|
||||
$value = str_replace('//', '/', '/' . trim($value, '/') . '/');
|
||||
}
|
||||
|
||||
return [$key => $value];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue