[Mapbender-commits] r9967 - in trunk/mapbender/http: classes javascripts php
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Fri Sep 28 09:27:54 PDT 2018
Author: armin11
Date: 2018-09-28 09:27:54 -0700 (Fri, 28 Sep 2018)
New Revision: 9967
Modified:
trunk/mapbender/http/classes/class_wmc.php
trunk/mapbender/http/javascripts/initWmcObj.php
trunk/mapbender/http/php/mod_loadwmc_server.php
Log:
Fix typo ;-)
Modified: trunk/mapbender/http/classes/class_wmc.php
===================================================================
--- trunk/mapbender/http/classes/class_wmc.php 2018-09-28 13:29:56 UTC (rev 9966)
+++ trunk/mapbender/http/classes/class_wmc.php 2018-09-28 16:27:54 UTC (rev 9967)
@@ -801,7 +801,7 @@
return $updatedWMC;
}
- public function removeUnaccessibleLayers($wmcXml) {
+ public function removeUnaccessableLayers($wmcXml) {
$currentUser = new User(Mapbender::session()->get("mb_user_id"));
//declare xpath to pull all layer with given ids from stored wmc docs
$query_mbLayerId = "/wmc:ViewContext/wmc:LayerList/wmc:Layer/wmc:Extension/mapbender:layer_id";
Modified: trunk/mapbender/http/javascripts/initWmcObj.php
===================================================================
--- trunk/mapbender/http/javascripts/initWmcObj.php 2018-09-28 13:29:56 UTC (rev 9966)
+++ trunk/mapbender/http/javascripts/initWmcObj.php 2018-09-28 16:27:54 UTC (rev 9967)
@@ -542,7 +542,7 @@
if ($removeUnaccessableLayers == true) {
//$e = new mb_exception("try to remove layers without permission while loading from session!");
- $xml = $wmcGetApi->removeUnaccessibleLayers($xml);
+ $xml = $wmcGetApi->removeUnaccessableLayers($xml);
}
//$e = new mb_exception("initWmcObj.php: XML after merging json: ".$xml);
Modified: trunk/mapbender/http/php/mod_loadwmc_server.php
===================================================================
--- trunk/mapbender/http/php/mod_loadwmc_server.php 2018-09-28 13:29:56 UTC (rev 9966)
+++ trunk/mapbender/http/php/mod_loadwmc_server.php 2018-09-28 16:27:54 UTC (rev 9967)
@@ -96,9 +96,9 @@
if ($wmc->createFromDb($wmcId)) {
$updatedWMC = $wmc->updateUrlsFromDb();
if ($removeUnaccessableLayers == 1) {
- //new 2018-09-27 - delete unaccessible layers if wished!
- $accessibleWmcXml = $wmc->removeUnaccessibleLayers($updatedWMC);
- $wmc->createFromXml($accessibleWmcXml);
+ //new 2018-09-27 - delete unaccessable layers if wished!
+ $accessableWmcXml = $wmc->removeUnaccessableLayers($updatedWMC);
+ $wmc->createFromXml($accessableWmcXml);
} else {
$wmc->createFromXml($updatedWMC);
}
More information about the Mapbender_commits
mailing list