Allow applications with setup in their name to be setup

This commit is contained in:
Nathan Gray 2008-02-27 16:07:35 +00:00
parent 5f9104250b
commit c53cf5cee5

View File

@ -17,7 +17,7 @@ class setup_detection
$d = dir(EGW_SERVER_ROOT);
while($entry=$d->read())
{
if($entry != ".." && !ereg('setup',$entry) && is_dir(EGW_SERVER_ROOT . '/' . $entry))
if($entry != ".." && $entry != 'setup' && is_dir(EGW_SERVER_ROOT . '/' . $entry))
{
$f = EGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php';
if (@file_exists ($f))