mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 16:29:22 +01:00
fix from Stephen Reindl for open_restrictions error message in setup
This commit is contained in:
parent
f2c52cc197
commit
4877495957
@ -21,7 +21,7 @@
|
||||
$d = dir(PHPGW_SERVER_ROOT);
|
||||
while($entry=$d->read())
|
||||
{
|
||||
if(!ereg('setup',$entry) && is_dir(PHPGW_SERVER_ROOT . '/' . $entry))
|
||||
if($entry != ".." && !ereg('setup',$entry) && is_dir(PHPGW_SERVER_ROOT . '/' . $entry))
|
||||
{
|
||||
$f = PHPGW_SERVER_ROOT . '/' . $entry . '/setup/setup.inc.php';
|
||||
if (@file_exists ($f))
|
||||
|
@ -452,7 +452,10 @@
|
||||
* Load the app include files if the exists *
|
||||
\*************************************************************************/
|
||||
/* Then the include file */
|
||||
if (! preg_match ("/phpgwapi/i", PHPGW_APP_INC) && file_exists(PHPGW_APP_INC . '/functions.inc.php') && !isset($_GET['menuaction']))
|
||||
if (PHPGW_APP_INC != "" &&
|
||||
! preg_match ("/phpgwapi/i", PHPGW_APP_INC) &&
|
||||
file_exists(PHPGW_APP_INC . '/functions.inc.php') &&
|
||||
!isset($_GET['menuaction']))
|
||||
{
|
||||
include(PHPGW_APP_INC . '/functions.inc.php');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user