From 2c284c0ffa4e3306bcfb6d9f6b8d37995949fc15 Mon Sep 17 00:00:00 2001 From: Riccardo Beltrami Date: Thu, 16 Nov 2023 16:52:11 +0100 Subject: [PATCH] [Bugfix] fixed typo qsgmtime --- lizmap/modules/lizmap/lib/Project/Project.php | 2 +- lizmap/modules/lizmap/lib/Project/QgisProject.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lizmap/modules/lizmap/lib/Project/Project.php b/lizmap/modules/lizmap/lib/Project/Project.php index 91b49609da..30d7aa0cb6 100644 --- a/lizmap/modules/lizmap/lib/Project/Project.php +++ b/lizmap/modules/lizmap/lib/Project/Project.php @@ -174,7 +174,7 @@ public function __construct($key, Repository $rep, App\AppContextInterface $appC ) { $qgsProj = new QgisProject($layer['file'], $services, $this->appContext); $newLayer = $qgsProj->getLayerDefinition($layer['id']); - $newLayer['qsgmtime'] = filemtime($layer['file']); + $newLayer['qgsmtime'] = filemtime($layer['file']); $newLayer['file'] = $layer['file']; $newLayer['embedded'] = 1; $newLayer['projectPath'] = $layer['projectPath']; diff --git a/lizmap/modules/lizmap/lib/Project/QgisProject.php b/lizmap/modules/lizmap/lib/Project/QgisProject.php index 8f936c4bc8..8cd1f88465 100644 --- a/lizmap/modules/lizmap/lib/Project/QgisProject.php +++ b/lizmap/modules/lizmap/lib/Project/QgisProject.php @@ -1615,7 +1615,7 @@ protected function readLayers($xml) $xmlFile = realpath(dirname($this->path).DIRECTORY_SEPARATOR.(string) $attributes->project); $qgsProj = new QgisProject($xmlFile, $this->services, $this->appContext); $layer = $qgsProj->getLayerDefinition((string) $attributes->id); - $layer['qsgmtime'] = filemtime($xmlFile); + $layer['qgsmtime'] = filemtime($xmlFile); $layer['file'] = $xmlFile; $layer['embedded'] = 1; $layer['projectPath'] = (string) $attributes->project;