format
This commit is contained in:
parent
bd9808081e
commit
b893da927f
2 changed files with 2 additions and 2 deletions
|
@ -127,7 +127,7 @@ function list_files(string $base, string $_sub_dir=""): array
|
||||||
|
|
||||||
$files = [];
|
$files = [];
|
||||||
$dir = opendir("$base/$_sub_dir");
|
$dir = opendir("$base/$_sub_dir");
|
||||||
if($dir===false) {
|
if ($dir===false) {
|
||||||
throw new SCoreException("Unable to open directory $base/$_sub_dir");
|
throw new SCoreException("Unable to open directory $base/$_sub_dir");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -29,7 +29,7 @@ class ArchiveFileHandler extends DataHandlerExtension
|
||||||
$cmd = str_replace('%f', $event->tmpname, $cmd);
|
$cmd = str_replace('%f', $event->tmpname, $cmd);
|
||||||
$cmd = str_replace('%d', $tmpdir, $cmd);
|
$cmd = str_replace('%d', $tmpdir, $cmd);
|
||||||
exec($cmd);
|
exec($cmd);
|
||||||
if(file_exists($tmpdir)) {
|
if (file_exists($tmpdir)) {
|
||||||
try {
|
try {
|
||||||
$results = add_dir($tmpdir);
|
$results = add_dir($tmpdir);
|
||||||
if (count($results) > 0) {
|
if (count($results) > 0) {
|
||||||
|
|
Reference in a new issue