[Mapbender-commits] r1618 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Aug 6 10:30:45 EDT 2007
Author: christoph
Date: 2007-08-06 10:30:45 -0400 (Mon, 06 Aug 2007)
New Revision: 1618
Modified:
trunk/mapbender/http/php/mod_wfs_conf.php
trunk/mapbender/http/php/mod_wfs_edit.php
Log:
Displays headers vertically: Checks if gd2 is loaded; if not, headers are displayed horizontally
Modified: trunk/mapbender/http/php/mod_wfs_conf.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_conf.php 2007-08-06 12:52:29 UTC (rev 1617)
+++ trunk/mapbender/http/php/mod_wfs_conf.php 2007-08-06 14:30:45 UTC (rev 1618)
@@ -77,7 +77,10 @@
function toImage($text) {
$angle = 90;
- return "<img src='../php/createImageFromText.php?text=" . urlencode($text) . "&angle=" . $angle . "'>";
+ if (extension_loaded("gd2")) {
+ return "<img src='../php/createImageFromText.php?text=" . urlencode($text) . "&angle=" . $angle . "'>";
+ }
+ return $text;
}
/* save wfs_conf properties */
Modified: trunk/mapbender/http/php/mod_wfs_edit.php
===================================================================
--- trunk/mapbender/http/php/mod_wfs_edit.php 2007-08-06 12:52:29 UTC (rev 1617)
+++ trunk/mapbender/http/php/mod_wfs_edit.php 2007-08-06 14:30:45 UTC (rev 1618)
@@ -160,7 +160,10 @@
function toImage($text) {
$angle = 90;
- return "<img src='../php/createImageFromText.php?text=" . urlencode($text) . "&angle=" . $angle . "'>";
+ if (extension_loaded("gd2")) {
+ return "<img src='../php/createImageFromText.php?text=" . urlencode($text) . "&angle=" . $angle . "'>";
+ }
+ return $text;
}
/* configure elements */
More information about the Mapbender_commits
mailing list