Fix for bug [ #406681 ] function read_group_names() not exist, thx to Patrick Naubert <patrickn@tygerteam.com>

This commit is contained in:
el_latino 2001-03-12 15:09:00 +00:00
parent 1ac2174b70
commit 30e8f6e58b
2 changed files with 6 additions and 5 deletions

View File

@ -580,6 +580,7 @@
$url = $phpgw_info['server']['webserver_url'].'/'.$app.'/'.$url; $url = $phpgw_info['server']['webserver_url'].'/'.$app.'/'.$url;
} }
} */ } */
//echo "$url\n";
return $url; return $url;
} }
} }

View File

@ -113,13 +113,13 @@
} }
$list[] = array("name" => "home", "type" => "dir", "subdirs" => $hassubdir); $list[] = array("name" => "home", "type" => "dir", "subdirs" => $hassubdir);
$hassubdir = False; $hassubdir = False;
$groups = $phpgw->accounts->read_group_names(); $groups = $phpgw->accounts->get_list('groups');
if (!empty ($groups[0][1])) { if (!empty ($groups[0]['account_lid'])) {
$group_count = count($groups); $group_count = count($groups);
for ($groupidx=0;$groupidx<$group_count;++$groupidx) { for ($groupidx=0;$groupidx<$group_count;++$groupidx) {
$this->verifydir("group",$groups[$groupidx][1]); $this->verifydir("group",$groups[$groupidx]['account_lid']);
if ($checksubdirs == "Yes"){ //if its a dir, does that dir have subdirs? if ($checksubdirs == "Yes"){ //if its a dir, does that dir have subdirs?
$path = $phpgw_info["server"]["files_dir"].$sep."groups".$sep.$groups[$groupidx][1]; $path = $phpgw_info["server"]["files_dir"].$sep."groups".$sep.$groups[$groupidx]['account_lid'];
$subdir = dir($path); $subdir = dir($path);
while($subentry=$subdir->read()) { while($subentry=$subdir->read()) {
$subpath = $path.$sep.$subentry; $subpath = $path.$sep.$subentry;
@ -129,7 +129,7 @@
} }
} }
} }
$list[] = array("name" => $groups[$groupidx][1], "type" => "dir", "subdirs" => $hassubdir); $list[] = array("name" => $groups[$groupidx]['account_lid'], "type" => "dir", "subdirs" => $hassubdir);
$hassubdir = False; $hassubdir = False;
} }
} }