release 2022.11.20
parent
8649c2c11e
commit
f0e2433749
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
23
dcstore.xml
23
dcstore.xml
|
@ -1,12 +1,13 @@
|
|||
<?xml version="1.0"?>
|
||||
<modules xmlns:da="http://dotaddict.org/da/">
|
||||
<module id="periodical">
|
||||
<name>Periodical</name>
|
||||
<version>2022.05.16</version>
|
||||
<author>Jean-Christian Denis and contributors</author>
|
||||
<desc>Published periodically entries</desc>
|
||||
<file>https://github.com/JcDenis/periodical/releases/download/v2022.05.16/plugin-periodical.zip</file>
|
||||
<da:dcmin>2.22</da:dcmin>
|
||||
<da:details>https://plugins.dotaddict.org/dc2/details/periodical</da:details>
|
||||
<da:support>https://github.com/JcDenis/periodical</da:support>
|
||||
</module>
|
||||
</modules>
|
||||
<module id="periodical">
|
||||
<name>Periodical</name>
|
||||
<version>2022.11.20</version>
|
||||
<author>Jean-Christian Denis and contributors</author>
|
||||
<desc>Published periodically entries</desc>
|
||||
<file>https://github.com/JcDenis/periodical/releases/download/v2022.11.20/plugin-periodical.zip</file>
|
||||
<da:dcmin>2.24</da:dcmin>
|
||||
<da:details>https://plugins.dotaddict.org/dc2/details/periodical</da:details>
|
||||
<da:support>https://github.com/JcDenis/periodical</da:support>
|
||||
</module>
|
||||
</modules>
|
||||
|
|
|
@ -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'] . ' ';
|
||||
|
|
|
@ -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 = '<a href="category.php?id=%s">%s</a>';
|
||||
} else {
|
||||
$cat_link = '%2$s';
|
||||
|
|
Loading…
Reference in New Issue