[Mapbender-commits] r2570 - trunk/mapbender/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Tue Jul 1 06:11:13 EDT 2008
Author: verenadiewald
Date: 2008-07-01 06:11:13 -0400 (Tue, 01 Jul 2008)
New Revision: 2570
Modified:
trunk/mapbender/http/php/mod_createJSObjFromDBByWMS.php
Log:
call function createObjFromDBNoGui when no gui_id is set
Modified: trunk/mapbender/http/php/mod_createJSObjFromDBByWMS.php
===================================================================
--- trunk/mapbender/http/php/mod_createJSObjFromDBByWMS.php 2008-07-01 10:06:44 UTC (rev 2569)
+++ trunk/mapbender/http/php/mod_createJSObjFromDBByWMS.php 2008-07-01 10:11:13 UTC (rev 2570)
@@ -39,7 +39,12 @@
$admin = new administration();
if ($admin->getWmsPermission($wms_id, $user_id)) {
$mywms = new wms();
- $mywms->createObjFromDB($gui_id, $wms_id);
+ if(isset($gui_id) && $gui_id!='undefined'){
+ $mywms->createObjFromDB($gui_id, $wms_id);
+ }
+ else{
+ $mywms->createObjFromDBNoGui($wms_id);
+ }
$mywms->createJsObjFromWMS(true);
echo "parent.mod_addWMS_refresh();";
}
More information about the Mapbender_commits
mailing list