From ed2f3332a0fe95bc2bbc76e459a7016cd3e80bec Mon Sep 17 00:00:00 2001 From: Daniel Kulp Date: Wed, 19 Feb 2020 22:06:46 -0500 Subject: [PATCH] Missed a function (cherry picked from commit 4d606d2b22ce18c974896a4812fe0f1c66bbd85f) --- www/about.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/www/about.php b/www/about.php index 49259ce1b..cb33954a4 100644 --- a/www/about.php +++ b/www/about.php @@ -79,6 +79,19 @@ function getFileCount($dir) return $i; } + +function getFileList($dir, $ext) +{ + $i = array(); + if ($handle = opendir($dir)) { + while (($file = readdir($handle)) !== false) { + if (!in_array($file, array('.', '..')) && !is_dir($dir . $file) && strtolower(substr($file, strrpos($file, '.') + 1)) == $ext) { + array_push($i, $file); + } + } + } + return $i; +} function PrintGitBranchOptions() {