diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e1347c..4af52b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +enhancePostContent 2023.10.24 +=========================================================== +* Require Dotclear 2.28 +* Require PHP 8.1 +* Fix widgets + enhancePostContent 2023.10.16 =========================================================== * Require Dotclear 2.28 diff --git a/README.md b/README.md index 078b4c3..a86440f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # README -[![Release](https://img.shields.io/badge/release-2023.10.16-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/enhancePostContent/releases) -![Date](https://img.shields.io/badge/date-2023.10.16-c44d58.svg) +[![Release](https://img.shields.io/badge/release-2023.10.24-a2cbe9.svg)](https://git.dotclear.watch/JcDenis/enhancePostContent/releases) +![Date](https://img.shields.io/badge/date-2023.10.24-c44d58.svg) [![Dotclear](https://img.shields.io/badge/dotclear-v2.28-137bbb.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-9ac123.svg)](https://plugins.dotaddict.org/dc2/details/enhancePostContent) [![License](https://img.shields.io/badge/license-GPL--2.0-ececec.svg)](https://git.dotclear.watch/JcDenis/enhancePostContent/src/branch/master/LICENSE) @@ -40,6 +40,6 @@ you should also add widgets. ## CONTRIBUTORS -* Jean-Christian Denis +* Jean-Christian Denis (author) You are welcome to contribute to this code. diff --git a/_define.php b/_define.php index 064c678..94a115c 100644 --- a/_define.php +++ b/_define.php @@ -15,7 +15,7 @@ $this->registerModule( 'Enhance post content', 'Add features to words in post content', 'Jean-Christian Denis and Contributors', - '2023.10.16', + '2023.10.24', [ 'type' => 'plugin', 'requires' => [['core', '2.28']], diff --git a/dcstore.xml b/dcstore.xml index 143811f..723f880 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Enhance post content - 2023.10.16 + 2023.10.24 Jean-Christian Denis and Contributors Add features to words in post content - https://git.dotclear.watch/JcDenis/enhancePostContent/releases/download/v2023.10.16/plugin-enhancePostContent.zip + https://git.dotclear.watch/JcDenis/enhancePostContent/releases/download/v2023.10.24/plugin-enhancePostContent.zip 2.28 https://git.dotclear.watch/JcDenis/enhancePostContent/src/branch/master/README.md https://git.dotclear.watch/JcDenis/enhancePostContent/issues diff --git a/src/Epc.php b/src/Epc.php index 2dadd1a..949d9ca 100644 --- a/src/Epc.php +++ b/src/Epc.php @@ -110,7 +110,7 @@ class Epc /** * Get list of allowed templates name->[tag,callback] to list on epc widgets. * - * @return array The templates name->[id,cb] values + * @return array> The templates name->[id,cb] values */ public static function widgetAllowedTemplateValue(): array { @@ -415,7 +415,7 @@ class Epc $content = ''; while (App::frontend()->context()->__get('posts')?->fetch()) { - $content .= App::frontend()->__get('posts')->f('post_excerpt'); + $content .= App::frontend()->context()->__get('posts')->f('post_excerpt'); } return $content;