diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d32954..bb3aad8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +0.6 - 2023.04.26 +* require dotclear 2.26 +* use namespace + 0.5 - 2023.01.05 * update to dotclear 2.24 * use anonymous functions diff --git a/README.md b/README.md index a191f99..1cfd3a1 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Release](https://img.shields.io/github/v/release/JcDenis/comListe)](https://github.com/JcDenis/comListe/releases) [![Date](https://img.shields.io/github/release-date/JcDenis/comListe)](https://github.com/JcDenis/comListe/releases) [![Issues](https://img.shields.io/github/issues/JcDenis/comListe)](https://github.com/JcDenis/comListe/issues) -[![Dotclear](https://img.shields.io/badge/dotclear-v2.24-blue.svg)](https://fr.dotclear.org/download) +[![Dotclear](https://img.shields.io/badge/dotclear-v2.26-blue.svg)](https://fr.dotclear.org/download) [![Dotaddict](https://img.shields.io/badge/dotaddict-official-green.svg)](https://plugins.dotaddict.org/dc2/details/comListe) [![License](https://img.shields.io/github/license/JcDenis/comListe)](https://github.com/JcDenis/comListe/blob/master/LICENSE) @@ -19,7 +19,7 @@ It adds public page of all comments and trackbacks. _comListe_ requires: * admin perms for configuration - * Dotclear 2.24 + * Dotclear 2.26 ## USAGE diff --git a/_define.php b/_define.php index 33ae6ff..e772b95 100644 --- a/_define.php +++ b/_define.php @@ -10,7 +10,7 @@ * @copyright Jean-Christian Denis * @copyright GPL-2.0 https://www.gnu.org/licenses/gpl-2.0.html */ -if (!defined('DC_RC_PATH')) { +if (!defined('DC_RC_PATH') || is_null(dcCore::app()->auth)) { return null; } @@ -18,15 +18,18 @@ $this->registerModule( 'Comments list', 'Display a list of all comments and trackbacks of a blog in a public page', 'Benoit de Marne, Pierre Van Glabeke and contributors', - '0.5', + '0.6', [ - 'requires' => [['core', '2.24']], + 'requires' => [['core', '2.26']], 'permissions' => dcCore::app()->auth->makePermissions([ - dcAuth::PERMISSION_ADMIN, + dcCore::app()->auth::PERMISSION_ADMIN, ]), - 'type' => 'plugin', - 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=333985', - 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), - 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', + 'type' => 'plugin', + 'settings' => [ + 'self' => '', + ], + 'support' => 'http://forum.dotclear.org/viewtopic.php?pid=333985', + 'details' => 'https://plugins.dotaddict.org/dc2/details/' . basename(__DIR__), + 'repository' => 'https://raw.githubusercontent.com/JcDenis/' . basename(__DIR__) . '/master/dcstore.xml', ] ); diff --git a/dcstore.xml b/dcstore.xml index 74d404a..3f259e9 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,11 +2,11 @@ Comments list - 0.5 + 0.6 Benoit de Marne, Pierre Van Glabeke and contributors Display a list of all comments and trackbacks of a blog in a public page - https://github.com/JcDenis/comListe/releases/download/v0.5/plugin-comListe.zip - 2.24 + https://github.com/JcDenis/comListe/releases/download/v0.6/plugin-comListe.zip + 2.26 https://plugins.dotaddict.org/dc2/details/comListe http://forum.dotclear.org/viewtopic.php?pid=333985 diff --git a/locales/fr/main.lang.php b/locales/fr/main.lang.php index eb2d29f..f7282ca 100644 --- a/locales/fr/main.lang.php +++ b/locales/fr/main.lang.php @@ -9,16 +9,18 @@ # DOT NOT MODIFY THIS FILE ! # -l10n::$locales['Comments list'] = 'Liste de commentaires'; -l10n::$locales['open post'] = 'ouvrir le billet'; -l10n::$locales['Link to comments list public page'] = 'Lien vers la page public de la liste des commentaires'; -l10n::$locales['Pages:'] = 'Pages :'; -l10n::$locales['Number of comments per page:'] = 'Nombre de commentaires par page :'; -l10n::$locales['Total Comments:'] = 'Nombre total de commentaires :'; -l10n::$locales['Source:'] = 'Source :'; -l10n::$locales['No page title.'] = 'Pas de titre de page.'; -l10n::$locales['Enable comListe'] = 'Activer comListe'; -l10n::$locales['General options'] = 'Options générales'; -l10n::$locales['Public page title:'] = 'Titre de la page public :'; -l10n::$locales['Comments order:'] = 'Ordre des commentaires :'; -l10n::$locales['Display a list of all comments and trackbacks of a blog in a public page'] = 'Afficher la liste de tous les commentaires et rétroliens d\'un blog dans une page publique'; +use Dotclear\Helper\L10n; + +L10n::$locales['Comments list'] = 'Liste de commentaires'; +L10n::$locales['open post'] = 'ouvrir le billet'; +L10n::$locales['Link to comments list public page'] = 'Lien vers la page public de la liste des commentaires'; +L10n::$locales['Pages:'] = 'Pages :'; +L10n::$locales['Number of comments per page:'] = 'Nombre de commentaires par page :'; +L10n::$locales['Total Comments:'] = 'Nombre total de commentaires :'; +L10n::$locales['Source:'] = 'Source :'; +L10n::$locales['No page title.'] = 'Pas de titre de page.'; +L10n::$locales['Enable comListe'] = 'Activer comListe'; +L10n::$locales['General options'] = 'Options générales'; +L10n::$locales['Public page title:'] = 'Titre de la page public :'; +L10n::$locales['Comments order:'] = 'Ordre des commentaires :'; +L10n::$locales['Display a list of all comments and trackbacks of a blog in a public page'] = 'Afficher la liste de tous les commentaires et rétroliens d\'un blog dans une page publique';