Skip to content

Commit 47a39b3

Browse files
committed
- fixed problem with missing empy.png
1 parent 4c44b44 commit 47a39b3

6 files changed

Lines changed: 12 additions & 2 deletions

File tree

config/config.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,14 @@
3838
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/repository',
3939
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/files',
4040
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/temp',
41-
//XOOPS_UPLOAD_PATH . '/flags'
4241
],
4342
'copyBlankFiles' => [
4443
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images',
4544
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/modules',
4645
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/tables',
47-
//XOOPS_UPLOAD_PATH . '/flags'
46+
],
47+
'copyEmptyFiles' => [
48+
XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/images/modules',
4849
],
4950

5051
'copyTestFolders' => [

docs/changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
- cosmetics (goffy)
55
- deleted folder archive (goffy)
66
- added uuid and IP textbox field (mamba/goffy)
7+
- fixed problem with missing empy.png (cesagonchu/goffy)
78

89
<h5>3.04 Alpha 1 [2020-06-12]</h5> Dev: XOOPS 2.5.11, PHP 7.4.5
910
<hr>

include/install.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ function xoops_module_install_modulebuilder(\XoopsModule $module)
9090
$utility::copyFile($file, $dest);
9191
}
9292
}
93+
// --- COPY empty.png FILES ---------------
94+
if ($configurator->copyBlankFiles && \is_array($configurator->copyBlankFiles)) {
95+
$file = \dirname(__DIR__) . '/assets/images/modules/empty.png';
96+
foreach (\array_keys($configurator->copyBlankFiles) as $i) {
97+
$dest = $configurator->copyBlankFiles[$i] . '/empty.png';
98+
$utility::copyFile($file, $dest);
99+
}
100+
}
93101

94102
return true;
95103
}

testdata/images/modules/action.png

-4.37 KB
Binary file not shown.
-5.01 KB
Binary file not shown.

0 commit comments

Comments
 (0)