Skip to content

Commit

Permalink
Released version 3.3.5.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Sep 19, 2022
1 parent 225d494 commit b6604fd
Show file tree
Hide file tree
Showing 2 changed files with 12 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,5 +8,5 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-Menu"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-Menu/-/issues"
configurable = false
version = "3.3.4"
version = "3.3.5"
omeka_version_constraint = "^3.1.0"
11 changes: 11 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,15 @@

if (version_compare($oldVersion, '3.3.5', '<')) {
$settings->set('menu_property_itemset', $settings->get('next_property_itemset', ''));

$urlHelper = $services->get('ViewHelperManager')->get('url');
$messenger = new Messenger();
$message = new Message(
'The helper "PrimaryItemSet" was moved from module %1$sNext%2$s and a param is added for it in %3$smain settings%2$s.', // @translate
'<a href="https://gitlab.com/Daniel-KM/Omeka-S-module-Next" target="_blank">',
'</a>',
'<a href="' . $urlHelper('admin/default', ['controller' => 'setting', 'action' => 'browse'], ['fragment' => 'menu']) . '">'
);
$message->setEscapeHtml(false);
$messenger->addWarning($message);
}

0 comments on commit b6604fd

Please sign in to comment.