Two quick fixes

This commit is contained in:
Belle Aerni 2023-01-07 13:37:49 -08:00
parent b953821dd2
commit e96967f604
2 changed files with 2 additions and 1 deletions

View file

@ -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"

View file

@ -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();