Skip to content

Commit

Permalink
[Bugfix] fixed typo qsgmtime
Browse files Browse the repository at this point in the history
  • Loading branch information
mind84 authored and github-actions[bot] committed Nov 16, 2023
1 parent e7f3830 commit 2c284c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/lib/Project/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
Expand Down
2 changes: 1 addition & 1 deletion lizmap/modules/lizmap/lib/Project/QgisProject.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2c284c0

Please sign in to comment.