Skip to content

Commit

Permalink
Released version 3.4.8 for Omeka S v3 and v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Jan 9, 2023
1 parent 66243f4 commit 4da32ba
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Module.php
@@ -1,7 +1,7 @@
<?php declare(strict_types=1);

/*
* Copyright 2017-2022 Daniel Berthereau
* Copyright 2017-2023 Daniel Berthereau
*
* This software is governed by the CeCILL license under French law and abiding
* by the rules of distribution of free software. You can use, modify and/or
Expand Down
4 changes: 2 additions & 2 deletions config/module.ini
Expand Up @@ -8,6 +8,6 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-EasyAdmin"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-EasyAdmin/-/issues"
configurable = false
version = "3.3.8"
omeka_version_constraint = "^3.1.0"
version = "3.4.8"
omeka_version_constraint = "^3.1.0 || ^4.0.0"
dependencies = "Log"
24 changes: 24 additions & 0 deletions data/scripts/upgrade.php
Expand Up @@ -100,6 +100,21 @@
}

if (version_compare($oldVersion, '3.3.8', '<')) {
/** @var \Omeka\Module\Manager $moduleManager */
$moduleManager = $services->get('Omeka\ModuleManager');
$module = $moduleManager->getModule('BulkCheck');
if ($module) {
$sql = 'DELETE FROM `module` WHERE `id` = "BulkCheck";';
$connection->executeStatement($sql);
$container = new \Laminas\Session\Container('BulkCheck');
unset($container->addons);
$message = new Message(
'The module replaces the module %s. The upgrade is automatic.', // @translate
'Bulk Check'
);
$messenger->addSuccess($message);
}

$maintenanceStatus = $settings->get('maintenance_status', false) ? 'no' : 'public';
$maintenanceText = $settings->get('maintenance_text') ?: $services->get('MvcTranslator')->translate('This site is down for maintenance. Please contact the site administrator for more information.'); // @translate
$settings->set('easyadmin_maintenance_status', $maintenanceStatus);
Expand All @@ -125,3 +140,12 @@
$messenger->addSuccess($message);
}

if (version_compare($oldVersion, '3.4.8', '<')) {
$settings->set('easyadmin_interface', ['resource_public_view']);
$message = new Message('An option allows to display a link from the resource admin page to the public page.', // @translate
sprintf('<a href="%s">', $url('admin/default', ['controller' => 'setting'], ['fragment' => 'easyadmin_interface'])),
'</a>'
);
$message->setEscapeHtml(false);
$messenger->addSuccess($message);
}

0 comments on commit 4da32ba

Please sign in to comment.