mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-17 22:39:03 +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)
|
||||
{
|
||||
case 'html':
|
||||
$oPage->SetContentType('text/html');
|
||||
$oObj = MetaModel::GetObject($sClass, $id, true /* object must exist */);
|
||||
$aResults = array();
|
||||
$oObj->GetRelatedObjects($sRelation, MAX_RECURSION_DEPTH /* iMaxDepth */, $aResults);
|
||||
@@ -162,6 +163,7 @@ try
|
||||
|
||||
case 'xml':
|
||||
default:
|
||||
$oPage->SetContentType('text/xml');
|
||||
$oObj = MetaModel::GetObject($sClass, $id, true /* object must exist */);
|
||||
// Build the root XML part
|
||||
$oXmlDoc = new DOMDocument( '1.0', 'UTF-8' );
|
||||
|
||||
Reference in New Issue
Block a user