Skip to content

Commit

Permalink
Released version 3.6.18.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Jul 1, 2024
1 parent 9807aa2 commit d3bf20f
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/module.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-ImageServer"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-ImageServer/-/issues"
configurable = true
version = "3.6.17"
version = "3.6.18"
omeka_version_constraint = "^4.0.0"
dependencies = 'IiifServer'
17 changes: 17 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,20 @@
$settings->set('imageserver_tile_manual', !$settings->get('imageserver_auto_tile'));
$settings->delete('imageserver_auto_tile');
}

if (version_compare($oldVersion, '3.6.18', '<')) {
$isTileManual = $settings->get('imageserver_tile_manual');
$settings->set('imageserver_tile_mode', $isTileManual ? 'manual' : 'auto');
$settings->delete('imageserver_tile_manual');
if ($isTileManual) {
$message = new PsrMessage(
'A new option allows to set the tile mode "external". Check it if you use an external image server.' // @translate
);
$messenger->addWarning($message);
}

$message = new PsrMessage(
'A new task allows to clear tile metadata, that may be useful when an external server is used.' // @translate
);
$messenger->addSuccess($message);
}

0 comments on commit d3bf20f

Please sign in to comment.