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
|
- clean up code
|
||||||
- add dcstore.xml
|
- add dcstore.xml
|
||||||
|
|
||||||
|
|
11
_admin.php
11
_admin.php
|
@ -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
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue