diff --git a/CHANGELOG.md b/CHANGELOG.md
index fb9114f..519d2e4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,5 @@
-2022.11.12
-- require Dotclear 2.24
+2022.11.20
+- fix compatibility with Dotclear 2.24 (required)
2022.05.16
- require Dotclear 2.22
diff --git a/README.md b/README.md
index c94acf2..f0eaeca 100644
--- a/README.md
+++ b/README.md
@@ -3,7 +3,7 @@
[![Release](https://img.shields.io/github/v/release/JcDenis/periodical)](https://github.com/JcDenis/periodical/releases)
[![Date](https://img.shields.io/github/release-date/JcDenis/periodical)](https://github.com/JcDenis/periodical/releases)
[![Issues](https://img.shields.io/github/issues/JcDenis/periodical)](https://github.com/JcDenis/periodical/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/periodical)
[![License](https://img.shields.io/github/license/JcDenis/periodical)](https://github.com/JcDenis/periodical/blob/master/LICENSE)
@@ -22,7 +22,7 @@ and they will be publish ones after the others every week.
* admin permissions to configure plugin
* usage,contentadmin permissions to link feeds
- * Dotclear 2.22
+ * Dotclear 2.24
## NOTICE
@@ -47,8 +47,8 @@ You can also add or remove period to multiple posts from posts actions page.
* License : [GNU GPL v2](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html)
* Source & contribution : [GitHub Page](https://github.com/JcDenis/periodical)
- * Packages & details: [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/periodical)
- * Discuss & help: [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=42289)
+ * Packages & details : [Dotaddict Page](https://plugins.dotaddict.org/dc2/details/periodical)
+ * Discuss & help : [Dotclear Forum](https://forum.dotclear.org/viewtopic.php?id=42289)
## CONTRIBUTORS
diff --git a/_define.php b/_define.php
index 115e6c3..42bf34f 100644
--- a/_define.php
+++ b/_define.php
@@ -18,14 +18,13 @@ $this->registerModule(
'Periodical',
'Published periodically entries',
'Jean-Christian Denis and contributors',
- '2022.11.12',
+ '2022.11.20',
[
'requires' => [['core', '2.24']],
'permissions' => dcCore::app()->auth->makePermissions([
dcAuth::PERMISSION_USAGE,
dcAuth::PERMISSION_CONTENT_ADMIN,
]),
- 'usage,contentadmin',
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/periodical',
'details' => 'https://plugins.dotaddict.org/dc2/details/periodical',
diff --git a/dcstore.xml b/dcstore.xml
index 0201286..0f3a9a4 100644
--- a/dcstore.xml
+++ b/dcstore.xml
@@ -1,12 +1,13 @@
+
-
-Periodical
-2022.05.16
-Jean-Christian Denis and contributors
-Published periodically entries
-https://github.com/JcDenis/periodical/releases/download/v2022.05.16/plugin-periodical.zip
-2.22
-https://plugins.dotaddict.org/dc2/details/periodical
-https://github.com/JcDenis/periodical
-
-
\ No newline at end of file
+
+ Periodical
+ 2022.11.20
+ Jean-Christian Denis and contributors
+ Published periodically entries
+ https://github.com/JcDenis/periodical/releases/download/v2022.11.20/plugin-periodical.zip
+ 2.24
+ https://plugins.dotaddict.org/dc2/details/periodical
+ https://github.com/JcDenis/periodical
+
+
diff --git a/inc/class.periodical.php b/inc/class.periodical.php
index 71192f7..b99c6de 100644
--- a/inc/class.periodical.php
+++ b/inc/class.periodical.php
@@ -226,7 +226,7 @@ class periodical
$params['sql'] .= 'AND T.periodical_id ' . $this->con->in($params['periodical_id']);
unset($params['periodical_id']);
}
- if (dcCore::app()->auth->check('admin', dcCore::app()->blog->id)) {
+ if (dcCore::app()->auth->check(dcAuth::PERMISSION_ADMIN, dcCore::app()->blog->id)) {
if (isset($params['post_status'])) {
if ($params['post_status'] != '') {
$params['sql'] .= 'AND P.post_status = ' . (int) $params['post_status'] . ' ';
diff --git a/inc/lib.index.pager.php b/inc/lib.index.pager.php
index ae3f7b3..720da64 100644
--- a/inc/lib.index.pager.php
+++ b/inc/lib.index.pager.php
@@ -172,7 +172,7 @@ class adminPeriodicalList extends adminGenericList
private function postLine($checked)
{
- if (dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcAuth::PERMISSION_CATEGORIES]), dcCore::app()->blog->id)) {
+ if (dcCore::app()->auth->check(dcAuth::PERMISSION_CATEGORIES, dcCore::app()->blog->id)) {
$cat_link = '%s';
} else {
$cat_link = '%2$s';