mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
list_templates() only returns directorys now
This commit is contained in:
parent
fc7e159841
commit
08653f908d
@ -579,7 +579,7 @@
|
||||
$d = dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates');
|
||||
while ($entry=$d->read())
|
||||
{
|
||||
if ($entry != 'CVS' && $entry != '.' && $entry != '..')
|
||||
if ($entry != 'CVS' && $entry != '.' && $entry != '..' && is_dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry))
|
||||
{
|
||||
$list[$entry]['name'] = $entry;
|
||||
$f = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/details.inc.php';
|
||||
|
Loading…
Reference in New Issue
Block a user