mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Added the proper mimetype for XML pages for the impact analysis graph.
SVN:trunk[2307]
This commit is contained in:
@@ -142,6 +142,7 @@ try
|
|||||||
switch($sFormat)
|
switch($sFormat)
|
||||||
{
|
{
|
||||||
case 'html':
|
case 'html':
|
||||||
|
$oPage->SetContentType('text/html');
|
||||||
$oObj = MetaModel::GetObject($sClass, $id, true /* object must exist */);
|
$oObj = MetaModel::GetObject($sClass, $id, true /* object must exist */);
|
||||||
$aResults = array();
|
$aResults = array();
|
||||||
$oObj->GetRelatedObjects($sRelation, MAX_RECURSION_DEPTH /* iMaxDepth */, $aResults);
|
$oObj->GetRelatedObjects($sRelation, MAX_RECURSION_DEPTH /* iMaxDepth */, $aResults);
|
||||||
@@ -162,6 +163,7 @@ try
|
|||||||
|
|
||||||
case 'xml':
|
case 'xml':
|
||||||
default:
|
default:
|
||||||
|
$oPage->SetContentType('text/xml');
|
||||||
$oObj = MetaModel::GetObject($sClass, $id, true /* object must exist */);
|
$oObj = MetaModel::GetObject($sClass, $id, true /* object must exist */);
|
||||||
// Build the root XML part
|
// Build the root XML part
|
||||||
$oXmlDoc = new DOMDocument( '1.0', 'UTF-8' );
|
$oXmlDoc = new DOMDocument( '1.0', 'UTF-8' );
|
||||||
|
|||||||
Reference in New Issue
Block a user