[Mapbender-commits] r1432 - trunk/mapbender/http/javascripts

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jun 5 05:47:31 EDT 2007


Author: christoph
Date: 2007-06-05 05:47:31 -0400 (Tue, 05 Jun 2007)
New Revision: 1432

Modified:
   trunk/mapbender/http/javascripts/mod_displayWmc.php
Log:
deactivated short_open_tag

This setting is necessary because otherwise the XML
(beginning with "<?xml") will be interpreted as php!

Modified: trunk/mapbender/http/javascripts/mod_displayWmc.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_displayWmc.php	2007-06-05 07:36:09 UTC (rev 1431)
+++ trunk/mapbender/http/javascripts/mod_displayWmc.php	2007-06-05 09:47:31 UTC (rev 1432)
@@ -16,9 +16,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
 include_once(dirname(__FILE__)."/../../conf/mapbender.conf");
 
+	
 	$wmc_id = $_GET["wmc_id"];
 
 	if ($wmc_id){
@@ -29,6 +29,9 @@
 		if ($wmc_gml){
 			//Display WMC
  
+			// This setting is necessary because otherwise the XML
+			// (beginning with "<?xml") will be interpreted as php!
+			ini_set("short_open_tag", "Off");
 			header("Content-type: application/xhtml+xml; charset=".CHARSET);
 			echo $wmc_gml;
 		}



More information about the Mapbender_commits mailing list