From b02f4637e5f44cd6de2db8dd5f5a06c55f1a14b0 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 19 Mar 2023 10:51:46 +0100 Subject: [PATCH] testing release --- _define.php | 2 +- dcstore.xml | 4 ++-- src/Config.php | 2 +- src/Utils.php | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_define.php b/_define.php index 05624b7..04e90e8 100644 --- a/_define.php +++ b/_define.php @@ -20,7 +20,7 @@ $this->registerModule( 'Packages repository', 'Manage your Dotclear packages', 'Jean-Christian Denis', - '2023.03.18', + '2023.03.18.1', [ 'requires' => [['core', '2.26']], 'permissions' => null, diff --git a/dcstore.xml b/dcstore.xml index e0f08cc..f6ac092 100644 --- a/dcstore.xml +++ b/dcstore.xml @@ -2,10 +2,10 @@ Packages repository - 2023.03.18 + 2023.03.18.1 Jean-Christian Denis Manage your Dotclear packages - https://github.com/JcDenis/pacKman/releases/download/v2023.03.18/plugin-pacKman.zip + https://github.com/JcDenis/pacKman/releases/download/v2023.03.18.1/plugin-pacKman.zip 2.26 https://plugins.dotaddict.org/dc2/details/pacKman https://github.com/JcDenis/pacKman diff --git a/src/Config.php b/src/Config.php index 932b2a3..41364e7 100644 --- a/src/Config.php +++ b/src/Config.php @@ -92,7 +92,7 @@ class Config extends dcNsProcess $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_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; $is_configured = Utils::is_configured( diff --git a/src/Utils.php b/src/Utils.php index 80c4713..3b788ae 100644 --- a/src/Utils.php +++ b/src/Utils.php @@ -80,7 +80,7 @@ class Utils 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) { case Unzip::USE_PHARDATA: @@ -109,7 +109,7 @@ class Utils return 'Legacy'; } - public static function getZipCapability() + public static function getZipCapability(): string { switch (Zip::USE_DEFAULT) { case Zip::USE_PHARDATA: