|
@@ -139,7 +139,7 @@ discard block |
|
|
block discarded – undo |
|
139
|
139
|
} |
|
140
|
140
|
|
|
141
|
141
|
// normalize paths |
|
142
|
|
- $path = $this->normalize($this->from.'/'.$path); |
|
|
142
|
+ $path = $this->normalize($this->from . '/' . $path); |
|
143
|
143
|
|
|
144
|
144
|
// strip shared ancestor paths |
|
145
|
145
|
$shared = $this->shared($path, $this->to); |
|
@@ -149,7 +149,7 @@ discard block |
|
|
block discarded – undo |
|
149
|
149
|
// add .. for every directory that needs to be traversed to new path |
|
150
|
150
|
$to = str_repeat('../', mb_substr_count($to, '/')); |
|
151
|
151
|
|
|
152
|
|
- return $to.ltrim($path, '/'); |
|
|
152
|
+ return $to . ltrim($path, '/'); |
|
153
|
153
|
} |
|
154
|
154
|
|
|
155
|
155
|
/** |
Please login to merge, or discard this patch.