mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Use cached DB type when performing mysql -> mariadb string replacement
This commit is contained in:
@@ -76,9 +76,11 @@ use DBI;
|
||||
EOF
|
||||
}
|
||||
|
||||
my ($rver, $rvariant) = &get_remote_mysql_variant();
|
||||
if ($rvariant ne 'mysql') {
|
||||
$text = map { $text{$_} =~ s/MySQL/MariaDB/g } %text;
|
||||
# Fix text if we're running MariaDB
|
||||
if ($mysql_version =~ /mariadb/i) {
|
||||
foreach my $t (keys %text) {
|
||||
$text{$t} =~ s/MySQL/MariaDB/g;
|
||||
}
|
||||
}
|
||||
|
||||
if (&compare_version_numbers($mysql_version, "5.5") >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user