From abbfc1936fdced50d0a62bc45357735b0e7ec42d Mon Sep 17 00:00:00 2001 From: Thedro Neely Date: Thu, 11 Mar 2021 01:39:09 -0500 Subject: app/controllers/api: Show standard errors app/controllers/api/cache.controller.php app/controllers/api/thumbnails.controller.php --- app/controllers/api/cache.controller.php | 2 +- app/controllers/api/thumbnails.controller.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'app/controllers') diff --git a/app/controllers/api/cache.controller.php b/app/controllers/api/cache.controller.php index 7f149c0..c3109af 100644 --- a/app/controllers/api/cache.controller.php +++ b/app/controllers/api/cache.controller.php @@ -3,5 +3,5 @@ * Invalidate cache */ if ($_SERVER['REQUEST_METHOD'] === 'POST') { - echo $cacheBust = shell_exec('../bootstrap/helpers/cache'); + echo $cacheBust = shell_exec('../bootstrap/helpers/cache 2>&1'); } diff --git a/app/controllers/api/thumbnails.controller.php b/app/controllers/api/thumbnails.controller.php index e5d2be3..685a73e 100644 --- a/app/controllers/api/thumbnails.controller.php +++ b/app/controllers/api/thumbnails.controller.php @@ -3,5 +3,5 @@ * Update Thumbnails */ if ($_SERVER['REQUEST_METHOD'] === 'POST') { - echo $updateTumbnails = shell_exec('../bootstrap/helpers/thumbnails'); + echo $updateTumbnails = shell_exec('../bootstrap/helpers/thumbnails 2>&1'); } -- cgit v1.2.3