#185 Navigation Breadcrumb - Identify iTop by the Database and URL (to avoid messing up breadcrumbs when navigating between several instances of iTop - still buggy in case of reinstall)

SVN:trunk[4024]
This commit is contained in:
Romain Quetiez
2016-05-03 15:26:05 +00:00
parent 3579f557d1
commit 2513f0489c

View File

@@ -739,7 +739,8 @@ EOF
$iBreadCrumbMaxCount = utils::GetConfig()->Get('breadcrumb.max_count');
if ($iBreadCrumbMaxCount > 1)
{
$siTopInstanceId = json_encode(APPROOT);
$oConfig = MetaModel::GetConfig();
$siTopInstanceId = json_encode(utils::GetAbsoluteUrlAppRoot().'==='.$oConfig->GetDBHost().'/'.$oConfig->GetDBName().'/'.$oConfig->GetDBSubname());
if ($this->bBreadCrumbEnabled)
{
if (is_null($this->sBreadCrumbEntryId))