aboutsummaryrefslogtreecommitdiff
path: root/include/file-get.php
diff options
context:
space:
mode:
authorCamil Staps2016-08-01 13:48:14 +0200
committerCamil Staps2016-08-01 13:53:12 +0200
commitefa2936ec538c236dcec71f419ad714524c7d2b9 (patch)
tree1d7e1903851fc4c37c72cf8ee8de006979bb8b4e /include/file-get.php
parentPaypal not on by default in braintree (diff)
Removed BusinessAdmin::get* methods, added Model::search and
Model::count
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');