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:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-06-22 06:06:46 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-06-22 06:06:46 +0300
commitf889561c59247deb91a978710005bcf672a2268e (patch)
treee78f81da47e9e3f9742d5f789a34ae57881dca68 /sql.php
parentb31b92032a45e7fb503b0720ec3e44c10405e8a2 (diff)
Get default_fk_check_value on demand rather than checking the value in every script
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'sql.php')
-rw-r--r--sql.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql.php b/sql.php
index 9c2e790552..29ab3202b9 100644
--- a/sql.php
+++ b/sql.php
@@ -109,6 +109,16 @@ if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) {
// script has exited at this point
}
+if (isset($_REQUEST['get_default_fk_check_value'])
+ && $_REQUEST['get_default_fk_check_value'] == true
+) {
+ $response = PMA_Response::getInstance();
+ $response->addJSON(
+ 'default_fk_check_value', PMA_Util::getDefaultFKCheckValue()
+ );
+ exit;
+}
+
/**
* Check ajax request to set the column order and visibility
*/