From d9c1ac00f30cdfd79a4000fbbb606bd66b9ee54b Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Thu, 17 Apr 2025 15:38:16 +0200 Subject: [PATCH] Extract variable --- adminer/indexes.inc.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/adminer/indexes.inc.php b/adminer/indexes.inc.php index e874901c..c027d910 100644 --- a/adminer/indexes.inc.php +++ b/adminer/indexes.inc.php @@ -109,12 +109,13 @@ $show_options = ($_POST ? $_POST["options"] : get_setting("index_options")); " . lang('Algorithm'); + echo "" . lang('Algorithm'); } ?> (" . lang('length') . ")" : ""); +echo lang('Columns') . ($lengths ? " (" . lang('length') . ")" : ""); if ($lengths || support("descidx")) { echo checkbox("options", 1, $show_options, lang('Options'), "indexOptionsShow(this.checked)", "jsonly") . "\n"; } @@ -137,7 +138,7 @@ foreach ($row["indexes"] as $index) { echo "" . html_select("indexes[$j][type]", array(-1 => "") + $index_types, $index["type"], ($j == count($row["indexes"]) ? "indexesAddRow.call(this);" : ""), "label-type"); if ($index_algorithms) { - echo "" . html_select("indexes[$j][algorithm]", array_merge(array(""), $index_algorithms), $index['algorithm'], "label-algorithm"); + echo "" . html_select("indexes[$j][algorithm]", array_merge(array(""), $index_algorithms), $index['algorithm'], "label-algorithm"); } echo ""; @@ -150,7 +151,7 @@ foreach ($row["indexes"] as $index) { $column, "partial(" . ($i == count($index["columns"]) ? "indexesAddColumn" : "indexesChangeColumn") . ", '" . js_escape(JUSH == "sql" ? "" : $_GET["indexes"] . "_") . "')" ); - echo ""; + echo ""; echo ($lengths ? "" : ""); echo (support("descidx") ? checkbox("indexes[$j][descs][$i]", 1, idx($index["descs"], $key), lang('descending')) : ""); echo " ";