Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Update path.php deprecated code #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libraries/path.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,11 @@ public static function getPermissions($path)
for ($i = 0; $i < 3; $i++)
{
// read
$parsed_mode .= ($mode{$i} & 04) ? "r" : "-";
$parsed_mode .= ($mode[$i] & 04) ? "r" : "-";
// write
$parsed_mode .= ($mode{$i} & 02) ? "w" : "-";
$parsed_mode .= ($mode[$i] & 02) ? "w" : "-";
// execute
$parsed_mode .= ($mode{$i} & 01) ? "x" : "-";
$parsed_mode .= ($mode[$i] & 01) ? "x" : "-";
}

return $parsed_mode;
Expand Down