diff --git a/CHANGELOG.md b/CHANGELOG.md index a3df9cf..e92028b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ -dev -- ... +2022.11.20 +- fix compatibility with Dotclear 2.24 (required) 2021.11.06 - fix error on empty record on widget diff --git a/README.md b/README.md index ae06fb2..40a47dd 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.20-blue.svg)](https://fr.dotclear.org/download) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.24-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/postWidgetText) [![License](https://img.shields.io/github/license/JcDenis/postWidgetText)](https://github.com/JcDenis/postWidgetText/blob/master/LICENSE) diff --git a/_define.php b/_define.php index 4255cea..3fb675f 100644 --- a/_define.php +++ b/_define.php @@ -18,7 +18,7 @@ $this->registerModule( 'Post widget text', 'Add a widget with a text related to an entry', 'Jean-Christian Denis and Contributors', - '2022.11.12', + '2022.11.20', [ 'requires' => [['core', '2.24']], 'permissions' => dcCore::app()->auth->makePermissions([ diff --git a/dcstore.xml b/dcstore.xml index 8782e67..1214921 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,11 +2,11 @@ Post widget text - 2021.11.06 + 2022.11.20 Jean-Christian Denis and Contributors Add a widget with a text related to an entry - https://github.com/JcDenis/postWidgetText/releases/download/v2021.11.06/plugin-postWidgetText.zip - 2.20 + https://github.com/JcDenis/postWidgetText/releases/download/v2022.11.20/plugin-postWidgetText.zip + 2.24 https://plugins.dotaddict.org/dc2/details/postWidgetText https://github.com/JcDenis/postWidgetText diff --git a/inc/lib.pwt.admin.php b/inc/lib.pwt.admin.php index b6e23fe..f9e346f 100644 --- a/inc/lib.pwt.admin.php +++ b/inc/lib.pwt.admin.php @@ -72,8 +72,11 @@ class adminPostWidgetText 'url' => dcCore::app()->adminurl->get('admin.plugin.postWidgetText'), 'small-icon' => dcPage::getPF('postWidgetText/icon.png'), 'large-icon' => dcPage::getPF('postWidgetText/icon-big.png'), - 'permissions' => dcCore::app()->auth->check('usage,contentadmin', dcCore::app()->blog->id), - 'active_cb' => ['adminPostWidgetText', 'adminDashboardFavoritesActive'], + 'permissions' => dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([ + dcAuth::PERMISSION_USAGE, + dcAuth::PERMISSION_CONTENT_ADMIN, + ]), dcCore::app()->blog->id), + 'active_cb' => ['adminPostWidgetText', 'adminDashboardFavoritesActive'], ]); }