mirror of
https://github.com/friendica/friendica
synced 2025-04-25 03:50:12 +00:00
Changes:
- reformatted and documented private method - used [] instead of deprecated/discouraged array()
This commit is contained in:
parent
809beeee9d
commit
ae9bd4f3f2
3 changed files with 19 additions and 8 deletions
|
@ -1738,7 +1738,7 @@ class Probe
|
|||
// Resolve arbitrary relative path
|
||||
// Lifted from https://www.php.net/manual/en/function.realpath.php#84012
|
||||
$parts = array_filter(explode('/', $path), 'strlen');
|
||||
$absolutes = array();
|
||||
$absolutes = [];
|
||||
foreach ($parts as $part) {
|
||||
if ('.' == $part) continue;
|
||||
if ('..' == $part) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue