Author: ralfbecker
New Revision: 55329
URL: http://svn.stylite.de/viewvc/egroupware?rev=55329&view=rev
Log:
fix PHP Fatal error: Class EGroupware\Api\Session not found
Modified:
trunk/sitemgr/sitemgr-site/index.php
— trunk/sitemgr/sitemgr-site/index.php (original)
+++ trunk/sitemgr/sitemgr-site/index.php Wed Mar 9 13:25:28 2016
@@ -8,6 +8,8 @@
+use EGroupware\Api;
$site_id=0;
/**
@@ -88,10 +90,9 @@
die(“Header file not found. Either your path to eGroupWare in the config.inc.php file is bad, or you have not setup eGroupWare.”);
}
// do we use a different domain and are already loged in?
-require_once($sitemgr_info[‘egw_path’].‘phpgwapi/inc/class.egw_session.inc.php’);
+require_once($sitemgr_info[‘egw_path’].‘api/src/Session.php’);
if (isset($GLOBALS[‘egw_info’][‘server’][‘default_domain’]) &&
- egw_session::get_request(‘domain’) != $GLOBALS[‘egw_info’][‘server’][‘default_domain’])
- //$_COOKIE[‘domain’] != $GLOBALS[‘egw_info’][‘server’][‘default_domain’])
- Api\Session::get_request(‘domain’) != $GLOBALS[‘egw_info’][‘server’][‘default_domain’])
{
// force our default domain
$_GET[‘domain’] = $_COOKIE[‘domain’] = $_REQUEST[‘domain’] = $GLOBALS[‘egw_info’][‘server’][‘default_domain’];
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs