diff --git a/CHANGELOG.md b/CHANGELOG.md index a7c5208..e19fcd7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.1.1] - 2023-11-02 + +### Fixed +- Restored options array for ___getTemplate() params. + ## [1.1.0] - 2023-11-02 ### Added diff --git a/MarkupMenu.info.json b/MarkupMenu.info.json index a4d5055..0bdadd5 100644 --- a/MarkupMenu.info.json +++ b/MarkupMenu.info.json @@ -1,7 +1,7 @@ { "title": "MarkupMenu", "summary": "MarkupMenu is a module for generating menu markup.", - "version": "1.1.0", + "version": "1.1.1", "author": "Teppo Koivula", "href": "https://github.com/teppokoivula/MarkupMenu", "requires": [ diff --git a/MarkupMenu.module.php b/MarkupMenu.module.php index 617e27a..2297892 100644 --- a/MarkupMenu.module.php +++ b/MarkupMenu.module.php @@ -8,7 +8,7 @@ * MarkupMenu is a module for generating menu markup. See README.md for more details. * Some ideas and code in this module are based on the Markup Simple Navigation module. * - * @version 1.1.0 + * @version 1.1.1 * @author Teppo Koivula * @license Mozilla Public License v2.0 http://mozilla.org/MPL/2.0/ */ @@ -428,7 +428,7 @@ protected function getPage($source = null, $default = null): ?Page { * @param array $placeholders Array of placeholders for string replacements * @return string Template */ - protected function ___getTemplate($template_name, ?WireData $item = null, array $placeholders = []): string { + protected function ___getTemplate($template_name, ?WireData $item = null, array $options = [], array $placeholders = []): string { $template = $options['templates'][$template_name]; return is_callable($template) ? $template($item, $options, $placeholders) : $template; }