Sfoglia il codice sorgente

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2307 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 12 anni fa
parent
commit
3dcd95ba98
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      pages/xml.navigator.php

+ 2 - 0
pages/xml.navigator.php

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