Two quick fixes
This commit is contained in:
parent
b953821dd2
commit
e96967f604
2 changed files with 2 additions and 1 deletions
2
.github/workflows/preview.yml
vendored
2
.github/workflows/preview.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
|||
php_version: "8.0"
|
||||
- run: |
|
||||
sudo apt-get install zip -y
|
||||
zip -j AntCMS.zip src
|
||||
zip -r AntCMS.zip src/
|
||||
- uses: ncipollo/release-action@v1
|
||||
with:
|
||||
artifacts: "AntCMS.zip"
|
||||
|
|
|
@ -8,6 +8,7 @@ class AntTools
|
|||
{
|
||||
$dir = new \RecursiveDirectoryIterator(antThemePath);
|
||||
$iterator = new \RecursiveIteratorIterator($dir);
|
||||
$files=array();
|
||||
foreach ($iterator as $file) {
|
||||
if (pathinfo($file, PATHINFO_EXTENSION) == $extension || $extension == null) {
|
||||
$files[] = ($returnPath) ? $file->getPathname() : $file->getFilename();
|
||||
|
|
Loading…
Reference in a new issue