Skip to content

Commit

Permalink
Released version 3.15.14.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Jan 3, 2022
1 parent c7d056f commit 792accb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*
* Keeps original names of files and put them in a hierarchical structure.
*
* Copyright Daniel Berthereau 2012-2021
* Copyright Daniel Berthereau 2012-2022
* Copyright BibLibre, 2016
*
* This software is governed by the CeCILL license under French law and abiding
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ For more explanation, try the [test file].
TODO
----

- [ ] Manage renaming during background bulk import.
- [x] Manage renaming during background bulk import.
- [ ] Manage renaming data for module Image Server.


Warning
Expand Down Expand Up @@ -131,7 +132,7 @@ altered, and that no provisions are either added or removed herefrom.
Copyright
---------

* Copyright Daniel Berthereau, 2012-2020 (see [Daniel-KM] on GitLab)
* Copyright Daniel Berthereau, 2012-2022 (see [Daniel-KM] on GitLab)
* Copyright BibLibre, 2016-2017

First version of this plugin has been built for [École des Ponts ParisTech].
Expand Down
2 changes: 1 addition & 1 deletion config/module.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-ArchiveRepertory"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-ArchiveRepertory/-/issues"
configurable = true
version = "3.15.13.3"
version = "3.15.14.3"
omeka_version_constraint = "^3.0.0"
12 changes: 12 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
<?php declare(strict_types=1);

namespace ArchiveRepertory;

use Omeka\Mvc\Controller\Plugin\Messenger;
use Omeka\Stdlib\Message;

/**
* @var Module $this
* @var \Laminas\ServiceManager\ServiceLocatorInterface $serviceLocator
Expand Down Expand Up @@ -55,3 +59,11 @@
}
$settings->delete('archive_repertory_ingesters');
}

if (version_compare($oldVersion, '3.15.14.3', '<')) {
$messenger = new Messenger();
$message = new Message(
'The process is now working with background processes.' // @translate
);
$messenger->addSuccess($message);
}
2 changes: 1 addition & 1 deletion src/Generic/AbstractModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ protected function execSqlFromFile($filepath)
// See core commit #2689ce92f.
$sqls = array_filter(array_map('trim', explode(";\n", $sql)));
foreach ($sqls as $sql) {
$result = $connection->exec($sql);
$result = $connection->executeStatement($sql);
}

return $result;
Expand Down

0 comments on commit 792accb

Please sign in to comment.