[Mapbender-commits] r9382 - trunk/mapbender/http/classes
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Wed Jan 20 07:08:47 PST 2016
Author: armin11
Date: 2016-01-20 07:08:47 -0800 (Wed, 20 Jan 2016)
New Revision: 9382
Modified:
trunk/mapbender/http/classes/class_wms.php
Log:
Hint if authentiated wms should be loaded
Modified: trunk/mapbender/http/classes/class_wms.php
===================================================================
--- trunk/mapbender/http/classes/class_wms.php 2016-01-20 15:07:56 UTC (rev 9381)
+++ trunk/mapbender/http/classes/class_wms.php 2016-01-20 15:08:47 UTC (rev 9382)
@@ -537,7 +537,11 @@
}
$data = $x->file;
if ($data=='401') {
- echo "<br>HTTP Error:<b>".$data." - Authorization required. This seems to be a service which needs HTTP Authentication!</b><br>";
+ $e = new mb_exception("classes/class_wms.php: HTTP Error:".$data." - Authorization required. This seems to be a service which needs HTTP Authentication!");
+ //echo "<br>HTTP Error:<b>".$data." - Authorization required. This seems to be a service which needs HTTP Authentication!</b><br>";
+ $returnObject['success'] = false;
+ $returnObject['message'] = _mb("classes/class_wms.php: HTTP Error:".$data." - Authorization required. This seems to be a service which needs HTTP Authentication!");
+ return $returnObject;
}
if(!$data){
$this->wms_status = false;
More information about the Mapbender_commits
mailing list