diff options
author | Michal Čihař <michal@cihar.com> | 2017-11-28 14:39:54 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-11-28 14:40:03 +0300 |
commit | 4f2709fe01453ec6fc9100b01cab73f81d68e94e (patch) | |
tree | 36ae421aa62d74d62cd748da4560653e603d7ffa /ajax.php | |
parent | 2442877cca61a87aeb247f9d5698b500a5c9a7bc (diff) |
Enforce AJAX response
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'ajax.php')
-rw-r--r-- | ajax.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -15,6 +15,7 @@ $_GET['ajax_request'] = 'true'; require_once 'libraries/common.inc.php'; $response = Response::getInstance(); +$response->setAJAX(true); if (empty($_POST['type'])) { Core::fatalError(__('Bad type!')); |