diff options
author | Michal Čihař <michal@cihar.com> | 2017-08-02 10:02:15 +0300 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2017-08-02 10:02:15 +0300 |
commit | 631c8716af9c16a33a8bec3941a82fd1152c5bb9 (patch) | |
tree | 5600cce2bf005ec2bdda0fa7ec934ace0d2845a1 /ajax.php | |
parent | f60c9645c520a2688c8777245218de75daf9dbaf (diff) |
Fix error handling in ajax.php
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'ajax.php')
-rw-r--r-- | ajax.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -8,12 +8,13 @@ use PhpMyAdmin\Response; use PhpMyAdmin\Util; +use PhpMyAdmin\Core; require_once 'libraries/common.inc.php'; $response = Response::getInstance(); if (empty($_POST['type'])) { - PMA_fatalError(__('Bad type!')); + Core::fatalError(__('Bad type!')); } switch ($_POST['type']) { @@ -30,5 +31,5 @@ switch ($_POST['type']) { break; default: - PMA_fatalError(__('Bad type!')); + Core::fatalError(__('Bad type!')); } |