Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <michal@cihar.com>2017-08-02 10:02:15 +0300
committerMichal Čihař <michal@cihar.com>2017-08-02 10:02:15 +0300
commit631c8716af9c16a33a8bec3941a82fd1152c5bb9 (patch)
tree5600cce2bf005ec2bdda0fa7ec934ace0d2845a1 /ajax.php
parentf60c9645c520a2688c8777245218de75daf9dbaf (diff)
Fix error handling in ajax.php
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'ajax.php')
-rw-r--r--ajax.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/ajax.php b/ajax.php
index ab60b71260..868e137bf8 100644
--- a/ajax.php
+++ b/ajax.php
@@ -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!'));
}