fixed old theme support when css-dir is empty

This commit is contained in:
Pim Snel 2003-09-19 08:51:26 +00:00
parent 719ebac10c
commit bae60c5128

View File

@ -644,7 +644,7 @@
/*!
@function list_themes
@abstract list themes available
@note themes can either be css file like in HEAD (if the template has a css-dir) \
@note themes can either be css file like in HEAD (if the template has a css-dir and has css-files in is) \
or ordinary .14 themes-files
*/
function list_themes()
@ -661,7 +661,7 @@
}
}
}
else
if(!is_array($list))
{
$dh = opendir(PHPGW_SERVER_ROOT . '/phpgwapi/themes');
while ($file = readdir($dh))