aboutsummaryrefslogtreecommitdiff
path: root/include/file-get.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/file-get.php')
-rw-r--r--include/file-get.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/file-get.php b/include/file-get.php
index c04b378..2aa5de4 100644
--- a/include/file-get.php
+++ b/include/file-get.php
@@ -31,7 +31,7 @@ $filepath = Constants::files_folder . $filename;
$key = $_REQUEST['key'];
-$files = BusinessAdmin::getFiles($_pdo, ['`filename`=?'], [$filename]);
+$files = File::search($_pdo, ['`filename`=?'], [$filename]);
if (count($files) == 0 || !file_exists($filepath) || is_dir($filepath)) {
http_response_code(404);
header('Content-type: text/plain');