prepare DC 2.24

This commit is contained in:
Jean-Christian 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 0.4 - 2021.09.02
- clean up code - clean up code
- add dcstore.xml - add dcstore.xml

View file

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

View file

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