[Mapbender-commits] r2565 - branches/2.5/http/php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Mon Jun 30 09:43:33 EDT 2008
Author: verenadiewald
Date: 2008-06-30 09:43:33 -0400 (Mon, 30 Jun 2008)
New Revision: 2565
Modified:
branches/2.5/http/php/mod_createJSObjFromDBByWMS.php
Log:
call function createObjFromDBNoGui when no gui_id is set
Modified: branches/2.5/http/php/mod_createJSObjFromDBByWMS.php
===================================================================
--- branches/2.5/http/php/mod_createJSObjFromDBByWMS.php 2008-06-30 13:42:52 UTC (rev 2564)
+++ branches/2.5/http/php/mod_createJSObjFromDBByWMS.php 2008-06-30 13:43:33 UTC (rev 2565)
@@ -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