changes to dirList class, and finnish translation

git-svn-id: file:///Users/jimeh/Desktop/dlist/trunk@40 a5845835-ea0f-0410-a762-dd0bfe9bfde8
This commit is contained in:
jim
2007-06-03 16:13:06 +00:00
parent c73e775903
commit 50e942ebe0
2 changed files with 22 additions and 17 deletions

View File

@@ -260,11 +260,16 @@ class dirList {
}
function getGroup ($item) {
if ( function_exists('posix_getgrgid') ) {
$id = filegroup($item);
$name = posix_getgrgid($id);
return array('groupid'=>$id, 'group'=>$name['name']);
} else { return false; }
// --------------------------------------------------
// -- Commented out till the posix_getgrdid() bug in PHP 5.2.1 which causes
// -- an out of memory error is fixed.
// --------------------------------------------------
// if ( function_exists('posix_getgrgid') ) {
// $id = filegroup($item);
// $name = posix_getgrgid($id);
// return array('groupid'=>$id, 'group'=>$name['name']);
// } else { return false; }
return false;
}
function format_filesize($bytes) {