diff --git a/application/itopwebpage.class.inc.php b/application/itopwebpage.class.inc.php index 1d1cd04bd..666236257 100644 --- a/application/itopwebpage.class.inc.php +++ b/application/itopwebpage.class.inc.php @@ -45,6 +45,8 @@ class iTopWebPage extends NiceWebPage implements iTabbedPage protected $sBreadCrumbEntryIcon; protected $oCtx; + protected $bHasCollapsibleSection = false; + public function __construct($sTitle, $bPrintable = false) { parent::__construct($sTitle, $bPrintable); @@ -623,6 +625,7 @@ EOF ); } + /** * @param string $sId Identifies the item, to search after it in the current breadcrumb * @param string $sLabel Label of the breadcrumb item @@ -796,7 +799,7 @@ EOF if ($iBreadCrumbMaxCount > 1) { $oConfig = MetaModel::GetConfig(); - $siTopInstanceId = json_encode(utils::GetAbsoluteUrlAppRoot().'==='.$oConfig->Get('db_host').'/'.$oConfig->Get('db_name').'/'.$oConfig->Get('db_subname')); + $siTopInstanceId = json_encode($oConfig->GetItopInstanceid()); if ($this->bBreadCrumbEnabled) { if (is_null($this->sBreadCrumbEntryId)) @@ -821,6 +824,8 @@ EOF ); } + $this->outputCollapsibleSectionInit(); + if ($this->GetOutputFormat() == 'html') { foreach($this->a_headers as $s_header) @@ -927,7 +932,7 @@ EOF $sHtml .= "\n"; } } - + if (count($this->a_styles)>0) { $sHtml .= "