From 762e578759495f412210b00d0a181a64a097bca0 Mon Sep 17 00:00:00 2001 From: jjrom Date: Sun, 26 May 2024 07:31:16 +0200 Subject: [PATCH 1/2] Retrocommit from master --- app/resto/core/dbfunctions/FeaturesFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/resto/core/dbfunctions/FeaturesFunctions.php b/app/resto/core/dbfunctions/FeaturesFunctions.php index 642fd95a..2f2f2cdc 100755 --- a/app/resto/core/dbfunctions/FeaturesFunctions.php +++ b/app/resto/core/dbfunctions/FeaturesFunctions.php @@ -316,7 +316,7 @@ public function storeFeature($id, $collection, $featureArray) */ $facetsStored = $collection->context->core['storeFacets'] && $collection->model->dbParams['storeFacets']; if ($facetsStored) { - foreach (array_values($keysAndValues['facets']) as $facetElement) { + foreach (array_values($keysValues['facets']) as $facetElement) { if (isset($facetElement['type']) && $facetElement['type'] === 'catalog') { if ( !$collection->user->hasRightsTo(RestoUser::CREATE_CATALOG) ) { return RestoLogUtil::httpError(403, 'Feature ingestion leads to creation of catalog ' . $facetElement['id'] . ' but you don\'t have right to create catalogs'); From 142c62bfd4187e0b02c5f56a59e4bcb77ebc720b Mon Sep 17 00:00:00 2001 From: jjrom Date: Tue, 28 May 2024 15:09:01 +0200 Subject: [PATCH 2/2] Update metalink url --- app/resto/core/xml/ATOMFeed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/resto/core/xml/ATOMFeed.php b/app/resto/core/xml/ATOMFeed.php index e9ce2cec..cff9939d 100755 --- a/app/resto/core/xml/ATOMFeed.php +++ b/app/resto/core/xml/ATOMFeed.php @@ -147,7 +147,7 @@ private function startAtomFeed() 'xmlns:gml' => 'http://www.opengis.net/gml', 'xmlns:geo' => 'http://a9.com/-/opensearch/extensions/geo/1.0/', 'xmlns:eo' => 'http://a9.com/-/opensearch/extensions/eo/1.0/', - 'xmlns:metalink' => 'urn:ietf:params:xml:ns:metalink', + 'xmlns:metalink' => 'http://www.metalinker.org/', 'xmlns:xlink' => 'http://www.w3.org/1999/xlink', 'xmlns:media' => 'http://search.yahoo.com/mrss/', 'xmlns:resto' => 'http://snapplanet.io/resto'