cosmetic
This commit is contained in:
parent
0bd77b1399
commit
88bd4e0db6
16
src/Core.php
16
src/Core.php
@ -70,15 +70,15 @@ class Core
|
|||||||
|
|
||||||
$zip_root_dir = $zip->getRootDir();
|
$zip_root_dir = $zip->getRootDir();
|
||||||
if ($zip_root_dir != false) {
|
if ($zip_root_dir != false) {
|
||||||
$target = dirname($zip_file);
|
$target = dirname($zip_file);
|
||||||
$path = $target . DIRECTORY_SEPARATOR . $zip_root_dir;
|
$path = $target . DIRECTORY_SEPARATOR . $zip_root_dir;
|
||||||
$define = $zip_root_dir . '/' . dcModules::MODULE_FILE_DEFINE;
|
$define = $zip_root_dir . '/' . dcModules::MODULE_FILE_DEFINE;
|
||||||
$init = $zip_root_dir . '/' . dcModules::MODULE_FILE_INIT;
|
$init = $zip_root_dir . '/' . dcModules::MODULE_FILE_INIT;
|
||||||
} else {
|
} else {
|
||||||
$target = dirname($zip_file) . DIRECTORY_SEPARATOR . preg_replace('/\.([^.]+)$/', '', basename($zip_file));
|
$target = dirname($zip_file) . DIRECTORY_SEPARATOR . preg_replace('/\.([^.]+)$/', '', basename($zip_file));
|
||||||
$path = $target;
|
$path = $target;
|
||||||
$define = dcModules::MODULE_FILE_DEFINE;
|
$define = dcModules::MODULE_FILE_DEFINE;
|
||||||
$init = dcModules::MODULE_FILE_INIT;
|
$init = dcModules::MODULE_FILE_INIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($zip->isEmpty()) {
|
if ($zip->isEmpty()) {
|
||||||
|
@ -28,7 +28,7 @@ class Zip extends \Dotclear\Helper\File\Zip\Zip
|
|||||||
* @param string $name The name
|
* @param string $name The name
|
||||||
* @param string $file The file
|
* @param string $file The file
|
||||||
* @param int|null $mtime The mtime
|
* @param int|null $mtime The mtime
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function writeFile(string $name, string $file, ?int $mtime)
|
protected function writeFile(string $name, string $file, ?int $mtime)
|
||||||
|
Loading…
Reference in New Issue
Block a user