testing release
parent
6c0ffc1190
commit
b02f4637e5
|
@ -20,7 +20,7 @@ $this->registerModule(
|
||||||
'Packages repository',
|
'Packages repository',
|
||||||
'Manage your Dotclear packages',
|
'Manage your Dotclear packages',
|
||||||
'Jean-Christian Denis',
|
'Jean-Christian Denis',
|
||||||
'2023.03.18',
|
'2023.03.18.1',
|
||||||
[
|
[
|
||||||
'requires' => [['core', '2.26']],
|
'requires' => [['core', '2.26']],
|
||||||
'permissions' => null,
|
'permissions' => null,
|
||||||
|
|
|
@ -2,10 +2,10 @@
|
||||||
<modules xmlns:da="http://dotaddict.org/da/">
|
<modules xmlns:da="http://dotaddict.org/da/">
|
||||||
<module id="pacKman">
|
<module id="pacKman">
|
||||||
<name>Packages repository</name>
|
<name>Packages repository</name>
|
||||||
<version>2023.03.18</version>
|
<version>2023.03.18.1</version>
|
||||||
<author>Jean-Christian Denis</author>
|
<author>Jean-Christian Denis</author>
|
||||||
<desc>Manage your Dotclear packages</desc>
|
<desc>Manage your Dotclear packages</desc>
|
||||||
<file>https://github.com/JcDenis/pacKman/releases/download/v2023.03.18/plugin-pacKman.zip</file>
|
<file>https://github.com/JcDenis/pacKman/releases/download/v2023.03.18.1/plugin-pacKman.zip</file>
|
||||||
<da:dcmin>2.26</da:dcmin>
|
<da:dcmin>2.26</da:dcmin>
|
||||||
<da:details>https://plugins.dotaddict.org/dc2/details/pacKman</da:details>
|
<da:details>https://plugins.dotaddict.org/dc2/details/pacKman</da:details>
|
||||||
<da:support>https://github.com/JcDenis/pacKman</da:support>
|
<da:support>https://github.com/JcDenis/pacKman</da:support>
|
||||||
|
|
|
@ -92,7 +92,7 @@ class Config extends dcNsProcess
|
||||||
$img_off = sprintf($img, __('not writable'), 'check-off.png');
|
$img_off = sprintf($img, __('not writable'), 'check-off.png');
|
||||||
|
|
||||||
$check_repo = Utils::is_writable(Utils::getRepositoryDir($s->pack_repository), '_.zip') ? $img_on : $img_off;
|
$check_repo = Utils::is_writable(Utils::getRepositoryDir($s->pack_repository), '_.zip') ? $img_on : $img_off;
|
||||||
$check_first = !empty($s->pack_filename) && Utils::is_writable(Utils::getRepositoryDir($repo), $s->pack_filename) ? $img_on : $img_off;
|
$check_first = !empty($s->pack_filename) && Utils::is_writable(Utils::getRepositoryDir($repo), $s->pack_filename) ? $img_on : $img_off;
|
||||||
$check_second = !empty($s->secondpack_filename) && Utils::is_writable(Utils::getRepositoryDir($repo), $s->secondpack_filename) ? $img_on : $img_off;
|
$check_second = !empty($s->secondpack_filename) && Utils::is_writable(Utils::getRepositoryDir($repo), $s->secondpack_filename) ? $img_on : $img_off;
|
||||||
|
|
||||||
$is_configured = Utils::is_configured(
|
$is_configured = Utils::is_configured(
|
||||||
|
|
|
@ -80,7 +80,7 @@ class Utils
|
||||||
return !(empty($path) || empty($file) || !is_writable(dirname($path . DIRECTORY_SEPARATOR . $file)));
|
return !(empty($path) || empty($file) || !is_writable(dirname($path . DIRECTORY_SEPARATOR . $file)));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getUnzipCapability()
|
public static function getUnzipCapability(): string
|
||||||
{
|
{
|
||||||
switch (Unzip::USE_DEFAULT) {
|
switch (Unzip::USE_DEFAULT) {
|
||||||
case Unzip::USE_PHARDATA:
|
case Unzip::USE_PHARDATA:
|
||||||
|
@ -109,7 +109,7 @@ class Utils
|
||||||
return 'Legacy';
|
return 'Legacy';
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getZipCapability()
|
public static function getZipCapability(): string
|
||||||
{
|
{
|
||||||
switch (Zip::USE_DEFAULT) {
|
switch (Zip::USE_DEFAULT) {
|
||||||
case Zip::USE_PHARDATA:
|
case Zip::USE_PHARDATA:
|
||||||
|
|
Loading…
Reference in New Issue