prepare DC 2.24

This commit is contained in:
Jean-Christian Paul Denis 2022-11-13 23:43:30 +01:00
parent 3ac6e68025
commit 4646e02b82
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951
3 changed files with 11 additions and 9 deletions

View File

@ -1,3 +1,6 @@
0.5 - 2022.11.12
- require Dotclear 2.24
0.4 - 2021.09.02
- clean up code
- add dcstore.xml

View File

@ -15,15 +15,15 @@ if (!defined('DC_CONTEXT_ADMIN')) {
return null;
}
if (!tinyPacker::repositoryDir($core)) {
if (!tinyPacker::repositoryDir()) {
return null;
}
$core->addBehavior(
dcCore::app()->addBehavior(
'adminModulesListGetActions',
['tinyPacker', 'adminModulesGetActions']
);
$core->addBehavior(
dcCore::app()->addBehavior(
'adminModulesListDoActions',
['tinyPacker', 'adminModulesDoActions']
);
@ -141,13 +141,12 @@ class tinyPacker
/**
* Check and create directories used by packer
* @param object $core dcCore instance
* @return string|boolean Cleaned path or false on error
*/
public static function repositoryDir($core)
public static function repositoryDir()
{
$dir = path::real(
$core->blog->public_path . '/' . tinyPacker::$sub_dir,
dcCore::app()->blog->public_path . '/' . tinyPacker::$sub_dir,
false
);

View File

@ -19,9 +19,9 @@ $this->registerModule(
'Tiny packer',
'Quick pack theme or plugin into public dir',
'Jean-Christian Denis',
'0.4.1',
'0.5',
[
'requires' => [['core', '2.19']],
'requires' => [['core', '2.24']],
'permissions' => null,
'type' => 'plugin',
'support' => 'https://github.com/JcDenis/tinyPacker',