diff --git a/cadastre/classes/cadastreProfile.class.php b/cadastre/classes/cadastreProfile.class.php index 458421a..0834302 100644 --- a/cadastre/classes/cadastreProfile.class.php +++ b/cadastre/classes/cadastreProfile.class.php @@ -34,7 +34,7 @@ public static function get($repository, $project, $layerName, $profile = 'cadast } } - // jLog::log(json_encode($profile)); + // \jLog::log(json_encode($profile)); return $profile; } @@ -59,7 +59,7 @@ public static function getWithLayerId($repository, $project, $layerId, $profile $profile = $qgisLayer->getDatasourceProfile(31); } - // jLog::log(json_encode($profile)); + // \jLog::log(json_encode($profile)); return $profile; } diff --git a/cadastre/classes/lizmapCadastreRequest.class.php b/cadastre/classes/lizmapCadastreRequest.class.php index 34b0eac..b719b75 100644 --- a/cadastre/classes/lizmapCadastreRequest.class.php +++ b/cadastre/classes/lizmapCadastreRequest.class.php @@ -41,7 +41,7 @@ protected function getcapabilities() } catch (Exception $e) { // if qgisprojects profile does not exist, or if there is an // other error about the cache, let's log it - jLog::logEx($e, 'error'); + \jLog::logEx($e, 'error'); } // return cached data if ($cached !== false) { @@ -57,7 +57,7 @@ protected function getcapabilities() $response = $this->request(); // Retry if 500 error ( hackish, but QGIS Server segfault sometimes with cache issue ) - if ($code == 500) { + if ($response->code == 500) { // Get remote data $response = $this->request(); } @@ -106,7 +106,7 @@ public function createPdf() } $querystring = $this->constructUrl(); - // jLog::log( $querystring ); + // \jLog::log( $querystring ); // Get remote data list($data, $mime, $code) = lizmapProxy::getRemoteData($querystring); @@ -150,7 +150,7 @@ public function getPdf() } $querystring = $this->constructUrl(); - // jLog::log($querystring); + // \jLog::log($querystring); // Get remote data list($data, $mime, $code) = lizmapProxy::getRemoteData($querystring); @@ -179,7 +179,7 @@ public function getHtml() } $querystring = $this->constructUrl(); - // jLog::log($querystring); + // \jLog::log($querystring); // Get remote data list($data, $mime, $code) = lizmapProxy::getRemoteData($querystring); $data = json_decode($data);