From efa2936ec538c236dcec71f419ad714524c7d2b9 Mon Sep 17 00:00:00 2001 From: Camil Staps Date: Mon, 1 Aug 2016 13:48:14 +0200 Subject: Removed BusinessAdmin::get* methods, added Model::search and Model::count --- include/file-get.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/file-get.php') 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'); -- cgit v1.2.3