prepare DC 2.24
parent
3ac6e68025
commit
4646e02b82
|
@ -1,4 +1,7 @@
|
|||
0.4 - 2021.09.02
|
||||
0.5 - 2022.11.12
|
||||
- require Dotclear 2.24
|
||||
|
||||
0.4 - 2021.09.02
|
||||
- clean up code
|
||||
- add dcstore.xml
|
||||
|
||||
|
|
11
_admin.php
11
_admin.php
|
@ -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
|
||||
);
|
||||
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue