Changed language detection code, added some small features

This commit is contained in:
2023-03-12 12:38:43 +01:00
parent aabd37bd1a
commit 4266a211e0
15 changed files with 168 additions and 122 deletions

View File

@@ -142,7 +142,8 @@ include("header.php");
if ($action == ACT_DEFAULT):
// ========== VARIANT: default behavior =======================================
$sql = "SELECT location_id AS id, location_name AS value, location_parent AS parent_id
$sql = "SELECT location_id AS id, location_name AS value, location_parent AS parent_id,
CONCAT(LEFT(location_info,40), IF(CHAR_LENGTH(location_info)>40,'...','')) AS info
FROM location
ORDER BY location_parent, location_sort, location_name";
$sth = $dbh->query($sql);