1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 04:11:27 +02:00

Elastic: Use select() instead of SELECT

This commit is contained in:
Jakub Vrana
2013-08-08 16:01:29 -07:00
parent 6664b0fb7e
commit 21cc6ceb59
2 changed files with 7 additions and 4 deletions

View File

@@ -169,10 +169,10 @@ username.form['auth[driver]'].onchange();
*/
function selectQuery($query) {
global $jush;
return "<p><code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code>"
return ($_GET["edit"] != "" ? "" : "<p><code class='jush-$jush'>" . h(str_replace("\n", " ", $query)) . "</code>"
. (support("sql") ? " <a href='" . h(ME) . "sql=" . urlencode($query) . "'>" . lang('Edit') . "</a>" : "")
. "</p>" // </p> - required for IE9 inline edit
;
);
}
/** Description of a row in a table