forked from extern/egroupware
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');
|
$d = dir(PHPGW_SERVER_ROOT . '/phpgwapi/templates');
|
||||||
while ($entry=$d->read())
|
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;
|
$list[$entry]['name'] = $entry;
|
||||||
$f = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/details.inc.php';
|
$f = PHPGW_SERVER_ROOT . '/phpgwapi/templates/' . $entry . '/details.inc.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user