Now only list files named *.theme

This commit is contained in:
sgbeal 2000-08-19 22:56:14 +00:00
parent d3dc289015
commit ca5af4b7fc

View File

@ -31,7 +31,8 @@
$dh = opendir($phpgw_info["server"]["server_root"] . "/themes"); $dh = opendir($phpgw_info["server"]["server_root"] . "/themes");
while ($file = readdir($dh)) { while ($file = readdir($dh)) {
if ($file != "." && $file != ".." && $file != "CVS") { # if ($file != "." && $file != ".." && $file != "CVS") {
if ( eregi( "\.theme$", $file ) ) {
$installed_themes[] = substr($file,0,strpos($file,".")); $installed_themes[] = substr($file,0,strpos($file,"."));
} }
} }
@ -49,3 +50,5 @@
} }
include($phpgw_info["server"]["api_dir"] . "/footer.inc.php"); include($phpgw_info["server"]["api_dir"] . "/footer.inc.php");
?>