From edc5a9ea0a65d975795ce484cc4948ee38b56087 Mon Sep 17 00:00:00 2001 From: Matt Pass Date: Wed, 27 Jun 2012 20:54:39 +0100 Subject: [PATCH] Perms value format change & perms span has ID 3 chars for perm now, ie 705, rather than 0705 Spans to contain the perm value now have an ID This is so they can be updated after we chmod --- files.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/files.php b/files.php index 1b8effa..da619d1 100644 --- a/files.php +++ b/files.php @@ -53,8 +53,8 @@ function fileManager_dir($directory, $return_link, $first_call=true) { $fileAtts = ""; if ($serverType=="Linux") { - $chmodInfo = substr(sprintf('%o', fileperms($link)), -4); - $fileAtts = ''.$chmodInfo.''; + $chmodInfo = substr(sprintf('%o', fileperms($link)), -3); + $fileAtts = ''.$chmodInfo.''; } $fileManager = "