Improve variable name and formatting
This commit is contained in:
@@ -1133,11 +1133,11 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', $is_view
|
|||||||
if (! empty($GLOBALS['validatequery'])) {
|
if (! empty($GLOBALS['validatequery'])) {
|
||||||
$explain_params['validatequery'] = 1;
|
$explain_params['validatequery'] = 1;
|
||||||
}
|
}
|
||||||
$is_select_true=false;
|
$is_select = false;
|
||||||
if (preg_match('@^SELECT[[:space:]]+@i', $sql_query)) {
|
if (preg_match('@^SELECT[[:space:]]+@i', $sql_query)) {
|
||||||
$explain_params['sql_query'] = 'EXPLAIN ' . $sql_query;
|
$explain_params['sql_query'] = 'EXPLAIN ' . $sql_query;
|
||||||
$_message = __('Explain SQL');
|
$_message = __('Explain SQL');
|
||||||
$is_select_true = true;
|
$is_select = true;
|
||||||
} elseif (preg_match('@^EXPLAIN[[:space:]]+SELECT[[:space:]]+@i', $sql_query)) {
|
} elseif (preg_match('@^EXPLAIN[[:space:]]+SELECT[[:space:]]+@i', $sql_query)) {
|
||||||
$explain_params['sql_query'] = substr($sql_query, 8);
|
$explain_params['sql_query'] = substr($sql_query, 8);
|
||||||
$_message = __('Skip Explain SQL');
|
$_message = __('Skip Explain SQL');
|
||||||
@@ -1256,7 +1256,7 @@ function PMA_showMessage($message, $sql_query = null, $type = 'notice', $is_view
|
|||||||
// in the tools div, only display the Inline link when not in ajax
|
// in the tools div, only display the Inline link when not in ajax
|
||||||
// mode because 1) it currently does not work and 2) we would
|
// mode because 1) it currently does not work and 2) we would
|
||||||
// have two similar mechanisms on the page for the same goal
|
// have two similar mechanisms on the page for the same goal
|
||||||
if ($is_select_true ==true || $GLOBALS['is_ajax_request'] === false) {
|
if ($is_select || $GLOBALS['is_ajax_request'] === false) {
|
||||||
// see in js/functions.js the jQuery code attached to id inline_edit
|
// see in js/functions.js the jQuery code attached to id inline_edit
|
||||||
// document.write conflicts with jQuery, hence used $().append()
|
// document.write conflicts with jQuery, hence used $().append()
|
||||||
echo "<script type=\"text/javascript\">\n" .
|
echo "<script type=\"text/javascript\">\n" .
|
||||||
|
Reference in New Issue
Block a user