Added the proper mimetype for XML pages for the impact analysis graph.

SVN:trunk[2307]
This commit is contained in:
Denis Flaven
2012-10-20 13:37:46 +00:00
parent 08a320cf2b
commit 86b615a9a5

View File

@@ -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' );