mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 01:43:47 +01:00
few slight modifications to better cater for the multi-domain administration
This commit is contained in:
parent
e40d73091b
commit
2a4eff2ca3
@ -50,7 +50,7 @@
|
||||
*/
|
||||
function applications($account_id = '')
|
||||
{
|
||||
if (is_object($GLOBALS['egw_setup']))
|
||||
if (is_object($GLOBALS['egw_setup']) && is_object($GLOBALS['egw_setup']->db))
|
||||
{
|
||||
$this->db = clone($GLOBALS['egw_setup']->db);
|
||||
}
|
||||
|
@ -113,12 +113,12 @@
|
||||
$this->db->select('phpgw_config','COUNT(config_name)',false,__LINE__,__FILE__);
|
||||
if ($this->db->next_record())
|
||||
{
|
||||
echo '<center><b>Fatal Error:</b> You need to <a href="' . $setup_dir . '">update eGroupWare</a> before you can continue using it.</center>';
|
||||
throw new Exception('<center><b>Fatal Error:</b> You need to <a href="' . $setup_dir . '">update eGroupWare</a> before you can continue using it.</center>',999);
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<center><b>Fatal Error:</b> It appears that you have not created the database tables for '
|
||||
.'eGroupWare. Click <a href="' . $setup_dir . '">here</a> to run setup.</center>';
|
||||
throw new Exception('<center><b>Fatal Error:</b> It appears that you have not created the database tables for '
|
||||
.'eGroupWare. Click <a href="' . $setup_dir . '">here</a> to run setup.</center>',999);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
@ -50,11 +50,11 @@ if (!isset($GLOBALS['egw_info']['flags']['currentapp']))
|
||||
echo '!!! PLEASE CORRECT THIS SITUATION !!!</b></p>';
|
||||
}
|
||||
|
||||
include(EGW_API_INC.'/common_functions.inc.php');
|
||||
include_once(EGW_API_INC.'/common_functions.inc.php');
|
||||
|
||||
if (extension_loaded('memcache') && ini_get('session.save_handler') == 'memcache')
|
||||
{
|
||||
include(EGW_API_INC.'/memcache.inc.php');
|
||||
include_once(EGW_API_INC.'/memcache.inc.php');
|
||||
}
|
||||
// check if we can restore the eGW enviroment from the php-session
|
||||
if ($GLOBALS['egw_info']['server']['sessions_type'] == 'php4-restore' && $_REQUEST['sessionid'])
|
||||
|
Loading…
Reference in New Issue
Block a user